Merge pull request #15267 from yashykt/badpingfix

Fix bad_ping end2end test flakiness
pull/15278/head
Yash Tibrewal 7 years ago committed by GitHub
commit 0b1d8cec81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      test/core/end2end/tests/bad_ping.cc

@ -355,6 +355,11 @@ static void test_pings_without_data(grpc_end2end_test_config config) {
grpc_server_shutdown_and_notify(f.server, f.cq, tag(0xdead)); grpc_server_shutdown_and_notify(f.server, f.cq, tag(0xdead));
CQ_EXPECT_COMPLETION(cqv, tag(0xdead), 1); CQ_EXPECT_COMPLETION(cqv, tag(0xdead), 1);
// Also expect the previously blocked pings to complete with an error
CQ_EXPECT_COMPLETION(cqv, tag(200 + MAX_PING_STRIKES + 1), 0);
CQ_EXPECT_COMPLETION(cqv, tag(200 + MAX_PING_STRIKES + 2), 0);
cq_verify(cqv); cq_verify(cqv);
grpc_call_unref(s); grpc_call_unref(s);

Loading…
Cancel
Save