From 68f6f49c6d3f3c004458d31e29b5d3862298cf67 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 8 Jan 2023 15:28:54 -0600 Subject: [PATCH] test: fix a couple of recurring CI flakes in TimerTest --- tests/libtransmission/timer-test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/libtransmission/timer-test.cc b/tests/libtransmission/timer-test.cc index a88a619bf..79b87de29 100644 --- a/tests/libtransmission/timer-test.cc +++ b/tests/libtransmission/timer-test.cc @@ -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());