Small fixes to test cases
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "daggy/ThreadPool.hpp"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
using namespace daggy;
|
||||
|
||||
TEST_CASE("threadpool", "[threadpool]")
|
||||
@@ -36,8 +37,12 @@ TEST_CASE("threadpool", "[threadpool]")
|
||||
cnt++;
|
||||
return;
|
||||
}));
|
||||
for (auto &r : res)
|
||||
for (auto &r : res) {
|
||||
while (! r->ready()) {
|
||||
std::this_thread::sleep_for(150ms);
|
||||
}
|
||||
r->get();
|
||||
}
|
||||
REQUIRE(cnt == 100);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user