From 44f6b99d07a5efea83ffc1fece22aa7e7376e35a Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Wed, 6 Nov 2019 10:16:01 -0500 Subject: [PATCH] disable flaky timer_test on windows --- test/cpp/common/timer_test.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/cpp/common/timer_test.cc b/test/cpp/common/timer_test.cc index c36554ae0c8..ec08e76cfe5 100644 --- a/test/cpp/common/timer_test.cc +++ b/test/cpp/common/timer_test.cc @@ -61,6 +61,10 @@ class TimerTest : public ::testing::Test { bool do_not_test_{false}; }; +#ifndef GPR_WINDOWS +// the test fails with too many wakeups on windows opt build +// the mechanism by which that happens is described in +// https://github.com/grpc/grpc/issues/20436 TEST_F(TimerTest, NoTimers) { MAYBE_SKIP_TEST; grpc_core::ExecCtx exec_ctx; @@ -71,6 +75,7 @@ TEST_F(TimerTest, NoTimers) { int64_t wakeups = grpc_timer_manager_get_wakeups_testonly(); GPR_ASSERT(wakeups == 1 || wakeups == 2); } +#endif TEST_F(TimerTest, OneTimerExpires) { MAYBE_SKIP_TEST;