From 551d9897328e93ed2e4aed3463906a374692ab82 Mon Sep 17 00:00:00 2001 From: water Date: Tue, 8 Sep 2020 20:01:46 -0400 Subject: [PATCH] so close --- test/test_compiler_and_runtime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_compiler_and_runtime.cpp b/test/test_compiler_and_runtime.cpp index 8192b3a464..172b13bac1 100644 --- a/test/test_compiler_and_runtime.cpp +++ b/test/test_compiler_and_runtime.cpp @@ -1,4 +1,5 @@ #include +#include #include "gtest/gtest.h" #include "game/runtime.h" @@ -15,7 +16,7 @@ TEST(CompilerAndRuntime, StartRuntime) { listener::Listener listener; while (!listener.is_connected()) { listener.connect_to_target(); - usleep(1000); + std::this_thread::sleep_for(std::chrono::microseconds(1000)); } listener.send_reset(true);