UnitTests: Increase task scheduler wait duration

it seems GitHub CI is pretty bad at scheduling threads
This commit is contained in:
SirLynix 2024-02-03 23:24:41 +01:00
parent 3a612d8655
commit c148bc2851
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ SCENARIO("TaskScheduler", "[CORE][TaskScheduler]")
Nz::Time elapsedTime = clock.GetElapsedTime();
CHECK(count == scheduler.GetWorkerCount());
CHECK(elapsedTime < Nz::Time::Milliseconds(120));
CHECK(elapsedTime < Nz::Time::Milliseconds(scheduler.GetWorkerCount() * 100));
}
WHEN("We add a lot of tasks and wait for all of them")