[test] Enforce hygene between tests that require it (#34561)

Looks like we've got a thread race on shutdown with some of these
tests... adding a barrier at the head of tests that require precise
transport counts in order to stabilize.
pull/34565/head
Craig Tiller 1 year ago committed by GitHub
parent 4fa02accc1
commit 4c16e6b68f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test/core/transport/chttp2/too_many_pings_test.cc

@ -730,6 +730,7 @@ void PerformCallWithResponsePayload(grpc_channel* channel, grpc_server* server,
}
TEST(TooManyPings, BdpPingNotSentWithoutReceiveSideActivity) {
TransportCounter::WaitForTransportsToBeDestroyed();
grpc_completion_queue* cq = grpc_completion_queue_create_for_next(nullptr);
// create the server
std::string server_address =
@ -805,6 +806,7 @@ TEST(TooManyPings, BdpPingNotSentWithoutReceiveSideActivity) {
}
TEST(TooManyPings, TransportsGetCleanedUpOnDisconnect) {
TransportCounter::WaitForTransportsToBeDestroyed();
grpc_completion_queue* cq = grpc_completion_queue_create_for_next(nullptr);
// create the client and server
std::string server_address =

Loading…
Cancel
Save