diff options
author | Mehrdad Afshari <mehrdada@users.noreply.github.com> | 2018-02-06 17:09:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 17:09:22 -0800 |
commit | 3629f1f3bc22532f4734a7388ecd4129c529534f (patch) | |
tree | 88ac3a39f8c2148074f4f47f7cfd88a565b8043a | |
parent | e17592c929e5dd4e7dc9b4bb9545fe9820edf9f0 (diff) | |
parent | b66e6fe76122265f8d5eabf0a1200ff91b95e253 (diff) |
Merge pull request #14339 from mehrdada/fixreconnect
Sleep a second to deflake ReconnectTest
-rw-r--r-- | src/python/grpcio_tests/tests/unit/_reconnect_test.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python/grpcio_tests/tests/unit/_reconnect_test.py b/src/python/grpcio_tests/tests/unit/_reconnect_test.py index 10aee9fb4f..8acba5a30b 100644 --- a/src/python/grpcio_tests/tests/unit/_reconnect_test.py +++ b/src/python/grpcio_tests/tests/unit/_reconnect_test.py @@ -14,6 +14,7 @@ """Tests that a channel will reconnect if a connection is dropped""" import socket +import time import unittest import grpc @@ -88,6 +89,7 @@ class ReconnectTest(unittest.TestCase): multi_callable = channel.unary_unary(_UNARY_UNARY) self.assertEqual(_RESPONSE, multi_callable(_REQUEST)) server.stop(None) + time.sleep(1) server = grpc.server(server_pool, (handler,)) server.add_insecure_port('[::]:{}'.format(port)) server.start() |