Skip to content

Commit

Permalink
Increase the delta in DeleteSoonBeforeCallbackExpires to 50ms
Browse files Browse the repository at this point in the history
The SchedulerTest.DeleteSoonBeforeCallbackExpires seems flaky. The 10ms difference between the scheduler interval and the timeout sometimes isn't enough. Increase the delta to 50ms.
  • Loading branch information
Maciej Kumorek authored and sorinj committed Mar 5, 2020
1 parent 9c148b6 commit 01fb6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omaha/core/scheduler_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ TEST_F(SchedulerTest, DeleteWhenCallbackExpires) {
TEST_F(SchedulerTest, DeleteSoonBeforeCallbackExpires) {
int call_count = 0;
constexpr int kInterval = 500;
constexpr int kTimeout = kInterval - 10;
constexpr int kTimeout = kInterval - 50;
scoped_handle callback_fired(::CreateEvent(NULL, true, false, NULL));
{
Scheduler scheduler;
Expand Down

0 comments on commit 01fb6ce

Please sign in to comment.