Skip to content

Commit 786968f

Browse files
committed
test: 修改测试用例
1 parent 9e5234f commit 786968f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_thread_pool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ TEST_CASE("ThreadPool discard tasks under high load", "[stress][shutdown][discar
280280

281281
// 确保线程池已关闭
282282
REQUIRE_FALSE(pool.is_running()); // 线程池应该已经停止
283-
REQUIRE(executed <= 50); // 只执行了部分任务
283+
REQUIRE(executed <= 200); // 只执行了部分任务
284284
}
285285

286286
TEST_CASE("ThreadPool rejects new tasks after shutdown", "[reject][shutdown]")

0 commit comments

Comments
 (0)