[test] Sleep between server restarts

pull/35149/head
AJ Heller 1 year ago
parent 57d8462aee
commit 9a7b7b53dd
  1. 2
      test/core/end2end/tests/retry_transparent_max_concurrent_streams.cc

@ -104,6 +104,8 @@ CORE_END2END_TEST(RetryHttp2Test, RetryTransparentMaxConcurrentStreams) {
EXPECT_EQ(server_status.status(), GRPC_STATUS_OK);
EXPECT_EQ(server_status.message(), "xyz");
// Destroy server and then restart it.
// TODO(hork): hack to solve PosixEventEngine Listener's async shutdown issue.
absl::SleepFor(absl::Milliseconds(250));
InitServer(server_args);
// Server should get the second call.
auto s2 = RequestCall(201);

Loading…
Cancel
Save