Skip to content
Snippets Groups Projects
Commit 069daa38 authored by Craig Tiller's avatar Craig Tiller
Browse files

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

parent 134e92fa
No related branches found
No related tags found
No related merge requests found
...@@ -86,6 +86,8 @@ class CrashTest : public ::testing::Test { ...@@ -86,6 +86,8 @@ class CrashTest : public ::testing::Test {
void KillServer() { void KillServer() {
server_.reset(); 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: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment