diff options
author | murgatroid99 <mlumish@google.com> | 2015-03-25 11:33:05 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-03-25 11:33:05 -0700 |
commit | c1da8f20ea050eb11f9169791aa3a789d38b6dd5 (patch) | |
tree | 900d62072b2c03cb5ac34e1ec198eac49db9de57 /src/php/tests | |
parent | 685e4d958a2da154e01b415ef4ecb3378556d9ac (diff) |
Made necessary changes to get interop tests working
Diffstat (limited to 'src/php/tests')
-rwxr-xr-x | src/php/tests/interop/interop_client.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/php/tests/interop/interop_client.php b/src/php/tests/interop/interop_client.php index 82ca438169..7ee089e241 100755 --- a/src/php/tests/interop/interop_client.php +++ b/src/php/tests/interop/interop_client.php @@ -132,8 +132,6 @@ function serverStreaming($stub) { } $call = $stub->StreamingOutputCall($request); - hardAssert($call->getStatus()->code === Grpc\STATUS_OK, - 'Call did not complete successfully'); $i = 0; foreach($call->responses() as $value) { hardAssert($i < 4, 'Too many responses'); @@ -142,7 +140,10 @@ function serverStreaming($stub) { 'Payload ' . $i . ' had the wrong type'); hardAssert(strlen($payload->getBody()) === $sizes[$i], 'Response ' . $i . ' had the wrong length'); + $i += 1; } + hardAssert($call->getStatus()->code === Grpc\STATUS_OK, + 'Call did not complete successfully'); } /** @@ -240,4 +241,6 @@ switch($args['test_case']) { break; case 'cancel_after_first_response': cancelAfterFirstResponse($stub); + default: + exit(1); } |