Sleep a little after server death to allow TCP time to catch up

pull/1625/head
Craig Tiller 10 years ago
parent 134e92fafb
commit 069daa383e
  1. 2
      test/cpp/end2end/crash_test.cc

@ -86,6 +86,8 @@ class CrashTest : public ::testing::Test {
void KillServer() {
server_.reset();
// give some time for the TCP connection to drop
gpr_sleep_until(gpr_time_add(gpr_now(), gpr_time_from_seconds(1)));
}
private:

Loading…
Cancel
Save