Skip to content

Commit

Permalink
Merge pull request grpc#20050 from rmstar/shutdown_crash
Browse files Browse the repository at this point in the history
timer_test: add test case for grpc shutdown while timer is pending
  • Loading branch information
rmstar authored Aug 23, 2019
2 parents da21d8b + 2b9ab6d commit 848779b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/cpp/common/timer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,20 @@ TEST_F(TimerTest, CancelSomeTimers) {
gpr_log(GPR_DEBUG, "wakeups: %" PRId64 "", wakeups);
}

// Enable the following test after
// https://github.com/grpc/grpc/issues/20049 has been fixed.
#if 0
TEST_F(TimerTest, TimerNotCanceled) {
grpc_core::ExecCtx exec_ctx;
grpc_timer timer;
grpc_timer_init(&timer, 10000,
GRPC_CLOSURE_CREATE(
[](void*, grpc_error*) {
},
nullptr, grpc_schedule_on_exec_ctx));
}
#endif

int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
::testing::InitGoogleTest(&argc, argv);
Expand Down

0 comments on commit 848779b

Please sign in to comment.