Add larger margins to CallAfterTimeoutTest
This commit is contained in:
parent
0bf06ac7ed
commit
ee89bb7ffb
@ -37,10 +37,10 @@ TEST_F(CallAfterTimeoutTest, NoReset_2) {
|
||||
|
||||
TEST_F(CallAfterTimeoutTest, DoesntCallTwice) {
|
||||
auto obj = callAfterTimeout(milliseconds(50));
|
||||
sleep_for(milliseconds(100));
|
||||
sleep_for(milliseconds(150));
|
||||
EXPECT_TRUE(called);
|
||||
called = false;
|
||||
sleep_for(milliseconds(100));
|
||||
sleep_for(milliseconds(150));
|
||||
EXPECT_FALSE(called);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user