Skip to content
Snippets Groups Projects
Commit 6b3de015 authored by Michael Lumish's avatar Michael Lumish
Browse files

Merge pull request #3438 from stanley-cheung/php_fix_unit_tests

PHP: fix watchConnectivityState unit test
parents 4831d02c 3543ea40
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.
Finish editing this message first!
Please register or to comment