diff options
author | Stanley Cheung <stanleycheung@google.com> | 2015-09-23 14:05:53 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2015-09-23 14:05:53 -0700 |
commit | 3543ea40b5c15fb65b0524783786942c10fa8bea (patch) | |
tree | 0d773d86975fd74523e0c71372e3ec81ea1132ab /src/php/tests/unit_tests | |
parent | 4831d02cc2341ec2233ff9d9ef66fb9a86138fb7 (diff) |
php: fix watchConnectivityState unit test
Diffstat (limited to 'src/php/tests/unit_tests')
-rwxr-xr-x | src/php/tests/unit_tests/EndToEndTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php/tests/unit_tests/EndToEndTest.php b/src/php/tests/unit_tests/EndToEndTest.php index bd464f939f..b65366233a 100755 --- a/src/php/tests/unit_tests/EndToEndTest.php +++ b/src/php/tests/unit_tests/EndToEndTest.php @@ -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( |