From e6278b533372ba2cf8869a8563bd96208211e956 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Fri, 14 Feb 2020 12:08:53 -0800 Subject: [PATCH] Make the test intent more obvious --- .../grpcio_tests/tests/unit/_invocation_defects_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py b/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py index 7dd43f7a4aa..a0208b51df4 100644 --- a/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py +++ b/src/python/grpcio_tests/tests/unit/_invocation_defects_test.py @@ -195,11 +195,11 @@ class InvocationDefectsTest(unittest.TestCase): self._channel.close() def testIterableStreamRequestBlockingUnaryResponse(self): - requests = [b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH)] + requests = object() multi_callable = _stream_unary_multi_callable(self._channel) with self.assertRaises(grpc.RpcError) as exception_context: - response = multi_callable( + multi_callable( requests, metadata=(('test', 'IterableStreamRequestBlockingUnaryResponse'),)) @@ -208,7 +208,7 @@ class InvocationDefectsTest(unittest.TestCase): exception_context.exception.code()) def testIterableStreamRequestFutureUnaryResponse(self): - requests = [b'\x07\x08' for _ in range(test_constants.STREAM_LENGTH)] + requests = object() multi_callable = _stream_unary_multi_callable(self._channel) response_future = multi_callable.future( requests, @@ -221,7 +221,7 @@ class InvocationDefectsTest(unittest.TestCase): exception_context.exception.code()) def testIterableStreamRequestStreamResponse(self): - requests = [b'\x77\x58' for _ in range(test_constants.STREAM_LENGTH)] + requests = object() multi_callable = _stream_stream_multi_callable(self._channel) response_iterator = multi_callable( requests,