Merge pull request #3819 from stanley-cheung/php_fix_empty_stream_interop_test

PHP: fix empty_stream interop test
pull/3838/head
Jan Tattermusch 9 years ago
commit ba1ab45f45
  1. 6
      src/php/tests/interop/interop_client.php

@ -256,11 +256,7 @@ 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,

Loading…
Cancel
Save