aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/tests/unit_tests
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-09-23 14:05:53 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-09-23 14:05:53 -0700
commit3543ea40b5c15fb65b0524783786942c10fa8bea (patch)
tree0d773d86975fd74523e0c71372e3ec81ea1132ab /src/php/tests/unit_tests
parent4831d02cc2341ec2233ff9d9ef66fb9a86138fb7 (diff)
php: fix watchConnectivityState unit test
Diffstat (limited to 'src/php/tests/unit_tests')
-rwxr-xr-xsrc/php/tests/unit_tests/EndToEndTest.php4
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(