* commit 'a6a12a7804402273e193074a58162cc0b3890812': Fix flaky test time.timer_settime_0.
This commit is contained in:
commit
0660be899f
1 changed files with 2 additions and 2 deletions
|
@ -296,8 +296,8 @@ TEST(time, timer_settime_0) {
|
|||
Counter counter(Counter::CountAndDisarmNotifyFunction);
|
||||
ASSERT_EQ(0, counter.Value());
|
||||
|
||||
counter.SetTime(0, 1, 1, 0);
|
||||
usleep(500000);
|
||||
counter.SetTime(0, 500000000, 1, 0);
|
||||
sleep(1);
|
||||
|
||||
// The count should just be 1 because we disarmed the timer the first time it fired.
|
||||
ASSERT_EQ(1, counter.Value());
|
||||
|
|
Loading…
Reference in a new issue