From 6095b67d6ccdcc72c7456d72e73987956d842e55 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Tue, 24 Nov 2020 04:40:58 -0800 Subject: [PATCH] Reduce BdpPingNotSentWithoutReceiveSideActivity flakiness --- test/core/transport/chttp2/too_many_pings_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/core/transport/chttp2/too_many_pings_test.cc b/test/core/transport/chttp2/too_many_pings_test.cc index 2356bb5f0ba..38cb77ce275 100644 --- a/test/core/transport/chttp2/too_many_pings_test.cc +++ b/test/core/transport/chttp2/too_many_pings_test.cc @@ -707,9 +707,9 @@ TEST(TooManyPings, BdpPingNotSentWithoutReceiveSideActivity) { grpc_channel_ping(channel, cq, tag(4), nullptr); CQ_EXPECT_COMPLETION(cqv, tag(4), 1); cq_verify(cqv, 5); - cq_verify_empty_timeout(cqv, 1); - ASSERT_NE(grpc_channel_check_connectivity_state(channel, 0), - GRPC_CHANNEL_READY); + // Give some time for the server to disconnect if it hasn't already. + cq_verify_empty_timeout(cqv, 3); + VerifyChannelDisconnected(channel, cq); cq_verifier_destroy(cqv); // shutdown and destroy the client and server ServerShutdownAndDestroy(server, cq);