From eba8ee0d3801ff4869330f789b0c886178dc1a0c Mon Sep 17 00:00:00 2001 From: Chen Bo Date: Tue, 1 Aug 2023 14:27:08 +0800 Subject: [PATCH] Fix TEST(workpool, async_work_lambda_threadcreate) if system too slow --- thread/test/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thread/test/test.cpp b/thread/test/test.cpp index 958844a1..463dd63f 100644 --- a/thread/test/test.cpp +++ b/thread/test/test.cpp @@ -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"); }