Open up timing parameters for another shm_event_loop_test case
Been having problems with it missing the second timer iteration (so it
only gets the first and third ones).
Change-Id: Ib3281df90045b71d9b466710a974533f3adbe4ab
Signed-off-by: Austin Schuh <austin.schuh@bluerivertech.com>
diff --git a/aos/events/event_loop_param_test.cc b/aos/events/event_loop_param_test.cc
index 30e293d..fca25d4 100644
--- a/aos/events/event_loop_param_test.cc
+++ b/aos/events/event_loop_param_test.cc
@@ -1186,14 +1186,14 @@
auto ender_timer = loop->AddTimer([&test_timer]() { test_timer->Disable(); });
monotonic_clock::time_point s = loop->monotonic_now();
- test_timer->Setup(s, ::std::chrono::milliseconds(70));
- ender_timer->Setup(s + ::std::chrono::milliseconds(200));
- EndEventLoop(loop.get(), ::std::chrono::milliseconds(350));
+ test_timer->Setup(s, ::std::chrono::milliseconds(500));
+ ender_timer->Setup(s + ::std::chrono::milliseconds(1250));
+ EndEventLoop(loop.get(), ::std::chrono::milliseconds(2000));
Run();
EXPECT_THAT(iteration_list,
- ::testing::ElementsAre(s, s + chrono::milliseconds(70),
- s + chrono::milliseconds(140)));
+ ::testing::ElementsAre(s, s + chrono::milliseconds(500),
+ s + chrono::milliseconds(1000)));
}
// Verify that a timer can disable itself.