From e5f41cb5da0888a9d29f76116aa2ddde88cdded2 Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Wed, 14 Oct 2015 13:40:59 -0700 Subject: [PATCH] php: fix empty_stream interop test; --- src/php/tests/interop/interop_client.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/php/tests/interop/interop_client.php b/src/php/tests/interop/interop_client.php index 0590264ef80..1f903053a7d 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'); } /**