aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/tests
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-10-14 13:40:59 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-10-14 13:40:59 -0700
commite5f41cb5da0888a9d29f76116aa2ddde88cdded2 (patch)
treec9e9b5342ca7c96a8cb0a4da7c4ed3e3a21c93a8 /src/php/tests
parentbadbf817298054614742a2d7e6c1baf21804e80a (diff)
php: fix empty_stream interop test;
Diffstat (limited to 'src/php/tests')
-rwxr-xr-xsrc/php/tests/interop/interop_client.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/php/tests/interop/interop_client.php b/src/php/tests/interop/interop_client.php
index 0590264ef8..1f903053a7 100755
--- a/src/php/tests/interop/interop_client.php
+++ b/src/php/tests/interop/interop_client.php
@@ -256,15 +256,11 @@ function pingPong($stub) {
* @param $stub Stub object that has service methods.
*/
function emptyStream($stub) {
- // for the current PHP implementation, $call->read() will wait
- // forever for a server response if the server is not sending any.
- // so this test is imeplemented as a timeout to indicate the absence
- // of receiving any response from the server
- $call = $stub->FullDuplexCall(array('timeout' => 100000));
+ $call = $stub->FullDuplexCall();
$call->writesDone();
hardAssert($call->read() === null, 'Server returned too many responses');
hardAssert($call->getStatus()->code === Grpc\STATUS_OK,
- 'Call did not complete successfully');
+ 'Call did not complete successfully');
}
/**