|
|
@ -202,8 +202,8 @@ class MetadataTest(unittest.TestCase): |
|
|
|
def testUnaryStream(self): |
|
|
|
def testUnaryStream(self): |
|
|
|
multi_callable = self._channel.unary_stream(_UNARY_STREAM) |
|
|
|
multi_callable = self._channel.unary_stream(_UNARY_STREAM) |
|
|
|
call = multi_callable(_REQUEST, metadata=_INVOCATION_METADATA) |
|
|
|
call = multi_callable(_REQUEST, metadata=_INVOCATION_METADATA) |
|
|
|
# NOTE(gnossen): In the single-threaded case, we must consume at least |
|
|
|
# TODO(https://github.com/grpc/grpc/issues/20762): Make the call to |
|
|
|
# one message before the initial metadata will show up. |
|
|
|
# `next()` unnecessary. |
|
|
|
next(call) |
|
|
|
next(call) |
|
|
|
self.assertTrue( |
|
|
|
self.assertTrue( |
|
|
|
test_common.metadata_transmitted(_EXPECTED_INITIAL_METADATA, |
|
|
|
test_common.metadata_transmitted(_EXPECTED_INITIAL_METADATA, |
|
|
|