Skip to content

Commit

Permalink
fix(tests): Reduce thread count to execute cases.
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Nana <[email protected]>
  • Loading branch information
na2axl committed Oct 31, 2024
1 parent e97fc2a commit 67ec0ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 67ec0ca

Please sign in to comment.