aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python
diff options
context:
space:
mode:
authorGravatar Nathaniel Manista <nathaniel@google.com>2016-06-29 21:49:20 +0000
committerGravatar Nathaniel Manista <nathaniel@google.com>2016-06-29 21:49:20 +0000
commit458b35af34a4f5938e8e5ed7f9141ca3b2574ce4 (patch)
tree790148bcb8656aaec03fa171dd82ca5908418987 /src/python
parent01d7dbac1f747ca45135f1d79c38656db0701ec6 (diff)
Fix Python server interop spec noncompliance
Also fix spelling mistakes in the spec itself.
Diffstat (limited to 'src/python')
-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)...