[Base] Relax some timing constraints.

- Because setting the timer is scheduled by us but the wait on POSIX is
  currently scheduled by pthreads, this solves issues on overprovisioned
  CIs
This commit is contained in:
Joel Linn 2022-04-15 16:43:51 +02:00 committed by Rick Gibbed
parent bc25e77e20
commit e59a0e1206
1 changed files with 2 additions and 2 deletions

View File

@ -788,7 +788,7 @@ TEST_CASE("Wait on Timer", "[timer]") {
result = Wait(timer.get(), false, 1ms);
REQUIRE(result == WaitResult::kTimeout);
REQUIRE(timer->SetOnceAfter(1ms)); // Signals it
result = Wait(timer.get(), false, 2ms);
result = Wait(timer.get(), false, 20ms);
REQUIRE(result == WaitResult::kSuccess);
result = Wait(timer.get(), false, 1ms);
REQUIRE(result == WaitResult::kSuccess); // Did not reset
@ -799,7 +799,7 @@ TEST_CASE("Wait on Timer", "[timer]") {
result = Wait(timer.get(), false, 1ms);
REQUIRE(result == WaitResult::kTimeout);
REQUIRE(timer->SetOnceAfter(1ms)); // Signals it
result = Wait(timer.get(), false, 2ms);
result = Wait(timer.get(), false, 20ms);
REQUIRE(result == WaitResult::kSuccess);
result = Wait(timer.get(), false, 1ms);
REQUIRE(result == WaitResult::kTimeout); // Did reset