diff --git a/orm_lib/tests/db_test.cc b/orm_lib/tests/db_test.cc index b74f5503..738e8fd6 100644 --- a/orm_lib/tests/db_test.cc +++ b/orm_lib/tests/db_test.cc @@ -15,8 +15,9 @@ #include "Users.h" #include #include -#include #include +#include +#include #include #include @@ -32,6 +33,7 @@ int counter = 0; std::promise pro; auto globalf = pro.get_future(); +using namespace std::chrono_literals; void addCount(int &count, std::promise &pro) { ++count; @@ -544,5 +546,6 @@ int main() testOutput(false, "ORM mapper asynchronous interface(1)"); }); globalf.get(); + std::this_thread::sleep_for(0.008s); return 0; }