aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2017-03-01 08:30:57 -0800
committerGravatar Noah Eisen <ncteisen@google.com>2017-03-01 08:30:57 -0800
commitda22274401f7de40622bea5cc5209b7d3ccd8540 (patch)
tree02eb4f991c6a6872d14f5ae83734708cdc7d44c5 /src
parent80f29dbeacf9aaaf4a4e2e1b676afed68e3a97ae (diff)
Add sleep(1) to Python negative http2 client
Diffstat (limited to 'src')
-rw-r--r--src/python/grpcio_tests/tests/http2/negative_http2_client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python/grpcio_tests/tests/http2/negative_http2_client.py b/src/python/grpcio_tests/tests/http2/negative_http2_client.py
index b8adf093a5..b184e62cfd 100644
--- a/src/python/grpcio_tests/tests/http2/negative_http2_client.py
+++ b/src/python/grpcio_tests/tests/http2/negative_http2_client.py
@@ -31,6 +31,7 @@
import argparse
import grpc
+import time
from src.proto.grpc.testing import test_pb2
from src.proto.grpc.testing import messages_pb2
@@ -75,6 +76,7 @@ def _goaway(stub):
first_response = stub.UnaryCall(_SIMPLE_REQUEST)
_validate_payload_type_and_length(first_response, messages_pb2.COMPRESSABLE,
_RESPONSE_SIZE)
+ time.sleep(1)
second_response = stub.UnaryCall(_SIMPLE_REQUEST)
_validate_payload_type_and_length(second_response,
messages_pb2.COMPRESSABLE, _RESPONSE_SIZE)