Merge pull request #19226 from rmstar/cfstream_test_flake

Fix cfstream_test flake
reviewable/pr19276/r1
rmstar 6 years ago committed by GitHub
commit fdbc1b0c86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      test/cpp/end2end/cfstream_test.cc

@ -341,7 +341,9 @@ TEST_P(CFStreamTest, NetworkFlapRpcsInFlight) {
// Channel should be in READY state after we send some RPCs
for (int i = 0; i < 10; ++i) {
SendAsyncRpc(stub);
RequestParams param;
param.set_skip_cancelled_check(true);
SendAsyncRpc(stub, param);
++rpcs_sent;
}
EXPECT_TRUE(WaitForChannelReady(channel.get()));
@ -374,7 +376,9 @@ TEST_P(CFStreamTest, NetworkFlapRpcsInFlight) {
});
for (int i = 0; i < 100; ++i) {
SendAsyncRpc(stub);
RequestParams param;
param.set_skip_cancelled_check(true);
SendAsyncRpc(stub, param);
std::this_thread::sleep_for(std::chrono::milliseconds(10));
++rpcs_sent;
}

Loading…
Cancel
Save