From f8260ce45fdde5f56a48ae27cfe256a83ad58e92 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Fri, 27 Nov 2015 22:27:20 +0100 Subject: [PATCH] Make CallAfterTimeoutTest less flaky --- test/cli/CallAfterTimeoutTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cli/CallAfterTimeoutTest.cpp b/test/cli/CallAfterTimeoutTest.cpp index 32f1ec48..1fa564e0 100644 --- a/test/cli/CallAfterTimeoutTest.cpp +++ b/test/cli/CallAfterTimeoutTest.cpp @@ -49,12 +49,12 @@ TEST_F(CallAfterTimeoutTest, DoesntCallTwice) { } TEST_F(CallAfterTimeoutTest, OneReset) { - auto obj = callAfterTimeout(milliseconds(100)); - sleep_for(milliseconds(75)); + auto obj = callAfterTimeout(milliseconds(200)); + sleep_for(milliseconds(125)); obj->resetTimer(); - sleep_for(milliseconds(75)); + sleep_for(milliseconds(125)); EXPECT_FALSE(called); - sleep_for(milliseconds(75)); + sleep_for(milliseconds(125)); EXPECT_TRUE(called); }