Merge pull request #20956 from jtattermusch/win_timer_tests

Disable flaky timer_test on windows
pull/20963/head
Jan Tattermusch 5 years ago committed by GitHub
commit 3a37f901e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      test/cpp/common/timer_test.cc

@ -61,6 +61,10 @@ class TimerTest : public ::testing::Test {
bool do_not_test_{false}; 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) { TEST_F(TimerTest, NoTimers) {
MAYBE_SKIP_TEST; MAYBE_SKIP_TEST;
grpc_core::ExecCtx exec_ctx; grpc_core::ExecCtx exec_ctx;
@ -71,6 +75,7 @@ TEST_F(TimerTest, NoTimers) {
int64_t wakeups = grpc_timer_manager_get_wakeups_testonly(); int64_t wakeups = grpc_timer_manager_get_wakeups_testonly();
GPR_ASSERT(wakeups == 1 || wakeups == 2); GPR_ASSERT(wakeups == 1 || wakeups == 2);
} }
#endif
TEST_F(TimerTest, OneTimerExpires) { TEST_F(TimerTest, OneTimerExpires) {
MAYBE_SKIP_TEST; MAYBE_SKIP_TEST;

Loading…
Cancel
Save