aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-05-15 14:40:53 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-05-15 14:40:53 -0700
commit069daa383e720ac662fd4d8dd852f486556dcacf (patch)
tree1407fd07c4363f69457526e4ffca19a4adb4eb69 /test
parent134e92fafba1638121c3ddfee4c7e3d52404a374 (diff)
Sleep a little after server death to allow TCP time to catch up
Diffstat (limited to 'test')
-rw-r--r--test/cpp/end2end/crash_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cpp/end2end/crash_test.cc b/test/cpp/end2end/crash_test.cc
index dbb24d4259..91370edcd4 100644
--- a/test/cpp/end2end/crash_test.cc
+++ b/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: