php: call writesDone in interop test

pull/3758/head
Stanley Cheung 9 years ago
parent e5ba29f337
commit 66ec9bb0ef
  1. 3
      src/php/tests/interop/interop_client.php

@ -261,8 +261,9 @@ function emptyStream($stub) {
// 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->writesDone();
hardAssert($call->read() === null, 'Server returned too many responses');
hardAssert($call->getStatus()->code === Grpc\STATUS_DEADLINE_EXCEEDED,
hardAssert($call->getStatus()->code === Grpc\STATUS_OK,
'Call did not complete successfully');
}

Loading…
Cancel
Save