test: fix a couple of recurring CI flakes in TimerTest

This commit is contained in:
Charles Kerr 2023-01-08 15:28:54 -06:00 committed by GitHub
parent bc4acc6814
commit 68f6f49c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -198,9 +198,9 @@ TEST_F(TimerTest, restartWithDifferentInterval)
expectInterval(interval, AsMSec(end_time - begin_time));
};
test(100ms);
test(200ms);
test(100ms);
test(400ms);
test(200ms);
}
TEST_F(TimerTest, restartWithSameInterval)
@ -259,7 +259,7 @@ TEST_F(TimerTest, repeatingThenSingleShot)
// now restart it as a single shot
auto const baseline = n_calls;
begin_time = currentTime();
static auto constexpr SingleShotInterval = 80ms;
static auto constexpr SingleShotInterval = 200ms;
timer->startSingleShot(SingleShotInterval);
EXPECT_EQ(SingleShotInterval, timer->interval());
EXPECT_FALSE(timer->isRepeating());