Skip to content
Snippets Groups Projects
Commit 3543ea40 authored by Stanley Cheung's avatar Stanley Cheung
Browse files

php: fix watchConnectivityState unit test

parent 4831d02c
No related branches found
No related tags found
No related merge requests found
......@@ -204,11 +204,11 @@ class EndToEndTest extends PHPUnit_Framework_TestCase{
}
public function testWatchConnectivityStateFailed() {
$idle_state = $this->channel->getConnectivityState(true);
$idle_state = $this->channel->getConnectivityState();
$this->assertTrue($idle_state == Grpc\CHANNEL_IDLE);
$now = Grpc\Timeval::now();
$delta = new Grpc\Timeval(1);
$delta = new Grpc\Timeval(500000); // should timeout
$deadline = $now->add($delta);
$this->assertFalse($this->channel->watchConnectivityState(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment