From 069daa383e720ac662fd4d8dd852f486556dcacf Mon Sep 17 00:00:00 2001 From: Craig Tiller <craig.tiller@gmail.com> Date: Fri, 15 May 2015 14:40:53 -0700 Subject: [PATCH] Sleep a little after server death to allow TCP time to catch up --- test/cpp/end2end/crash_test.cc | 2 ++ 1 file changed, 2 insertions(+) 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: -- GitLab