From 76fc42b6599dc9daa2b2d8a24c66ec1ec57c1888 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 22 Sep 2022 15:42:06 -0500 Subject: [PATCH] test: fix watchdir CI flake (#3839) --- tests/libtransmission/watchdir-test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/libtransmission/watchdir-test.cc b/tests/libtransmission/watchdir-test.cc index 2adce185f..e308d43e9 100644 --- a/tests/libtransmission/watchdir-test.cc +++ b/tests/libtransmission/watchdir-test.cc @@ -234,17 +234,17 @@ TEST_P(WatchDirTest, retry) }; auto watchdir = createWatchDir(path, callback); auto constexpr FastRetryWaitTime = 20ms; - auto constexpr ThreeRetries = FastRetryWaitTime * 4; + auto constexpr SlowRetryWaitTime = 200ms; auto* const base_watchdir = dynamic_cast(watchdir.get()); ASSERT_TRUE(base_watchdir != nullptr); base_watchdir->setRetryDuration(FastRetryWaitTime); - processEvents(ThreeRetries); + processEvents(SlowRetryWaitTime); EXPECT_EQ(0U, std::size(names)); auto const test_file = "test.txt"sv; createFile(path, test_file); - processEvents(ThreeRetries); + processEvents(SlowRetryWaitTime); EXPECT_LE(2U, std::size(names)); for (auto const& name : names) {