Skip to content

Commit

Permalink
Fix TEST(workpool, async_work_lambda_threadcreate) if system too slow
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Aug 1, 2023
1 parent 4810999 commit eba8ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thread/test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ TEST(workpool, async_work_lambda_threadcreate) {
sem.wait(4);
duration = std::chrono::system_clock::now() - start;
EXPECT_GE(duration, std::chrono::seconds(1));
EXPECT_LE(duration, std::chrono::seconds(2));
EXPECT_LE(duration, std::chrono::seconds(3));
LOG_INFO("DONE");
}

Expand Down

0 comments on commit eba8ee0

Please sign in to comment.