From 67ec0caf40b11e34cc8e5e8c3548c0ce52cc20e3 Mon Sep 17 00:00:00 2001 From: Axel Nana Date: Thu, 31 Oct 2024 12:25:06 +0100 Subject: [PATCH] fix(tests): Reduce thread count to execute cases. Signed-off-by: Axel Nana --- tests/thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/thread.cpp b/tests/thread.cpp index 2e87733..6beab9f 100644 --- a/tests/thread.cpp +++ b/tests/thread.cpp @@ -133,18 +133,18 @@ TEST_CASE("Thread Pool Tests", "[thread][amplitude]") WHEN("a thread pool is created with threads") { Thread::Pool pool; - pool.Init(8); + pool.Init(1); THEN("it initializes with the correct number of threads") { - REQUIRE(pool.GetThreadCount() == 8); + REQUIRE(pool.GetThreadCount() == 1); } THEN("it cannot initialize twice") { pool.Init(4); REQUIRE_FALSE(pool.GetThreadCount() == 4); - REQUIRE(pool.GetThreadCount() == 8); + REQUIRE(pool.GetThreadCount() == 1); } WHEN("a ready task is added to the pool")