UnitTests: Increase task scheduler wait duration
it seems GitHub CI is pretty bad at scheduling threads
This commit is contained in:
@@ -39,7 +39,7 @@ SCENARIO("TaskScheduler", "[CORE][TaskScheduler]")
|
|||||||
Nz::Time elapsedTime = clock.GetElapsedTime();
|
Nz::Time elapsedTime = clock.GetElapsedTime();
|
||||||
|
|
||||||
CHECK(count == scheduler.GetWorkerCount());
|
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")
|
WHEN("We add a lot of tasks and wait for all of them")
|
||||||
|
|||||||
Reference in New Issue
Block a user