aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/tests/interop
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-07-01 14:17:55 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-07-01 14:17:55 -0700
commit98aa0c13f0f31584658dd7ad565f7a9a7a866f5e (patch)
tree4b5d3cbfd668fea862882335fde156b358e39de4 /src/python/grpcio/tests/interop
parent97b173dfb8d10bc68dcffa135762d2d152723bc6 (diff)
parent3c945ee2b3c3bf0fd01cc995332e252d1e10e51e (diff)
Merge branch 'filter_call_init_failure' into filter_api
Diffstat (limited to 'src/python/grpcio/tests/interop')
-rw-r--r--src/python/grpcio/tests/interop/methods.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/python/grpcio/tests/interop/methods.py b/src/python/grpcio/tests/interop/methods.py
index 7eac511525..86aa0495a2 100644
--- a/src/python/grpcio/tests/interop/methods.py
+++ b/src/python/grpcio/tests/interop/methods.py
@@ -79,10 +79,11 @@ class TestService(test_pb2.BetaTestServiceServicer):
def FullDuplexCall(self, request_iterator, context):
for request in request_iterator:
- yield messages_pb2.StreamingOutputCallResponse(
- payload=messages_pb2.Payload(
- type=request.payload.type,
- body=b'\x00' * request.response_parameters[0].size))
+ for response_parameters in request.response_parameters:
+ yield messages_pb2.StreamingOutputCallResponse(
+ payload=messages_pb2.Payload(
+ type=request.payload.type,
+ body=b'\x00' * response_parameters.size))
# NOTE(nathaniel): Apparently this is the same as the full-duplex call?
# NOTE(atash): It isn't even called in the interop spec (Oct 22 2015)...