aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/tests/unit_tests/ChannelTest.php
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2016-12-01 09:57:30 -0800
committerGravatar Ken Payson <kpayson@google.com>2016-12-01 09:57:30 -0800
commit02d2807b30321ed31d7e23a8a8e19f3ea821ab0e (patch)
tree30f8e2744b13ee971708c85a8fac9fcf0f47483c /src/php/tests/unit_tests/ChannelTest.php
parentd960c8b166eb1160714d3532d567364722940137 (diff)
Fixes 2 issues:
1. In the State change test, 123->0 will hit a c-core GPR_ASSERT if debugging is enabled because 123 doesn't map to a state that can be printed. 2. In the Server test, 8888 is sometimes unavailable, so we just use a wildcard port.
Diffstat (limited to 'src/php/tests/unit_tests/ChannelTest.php')
-rw-r--r--src/php/tests/unit_tests/ChannelTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/php/tests/unit_tests/ChannelTest.php b/src/php/tests/unit_tests/ChannelTest.php
index 4b35b1a28c..fa33d38911 100644
--- a/src/php/tests/unit_tests/ChannelTest.php
+++ b/src/php/tests/unit_tests/ChannelTest.php
@@ -99,7 +99,7 @@ class ChannelTest extends PHPUnit_Framework_TestCase
$this->channel = new Grpc\Channel('localhost:0',
['credentials' => Grpc\ChannelCredentials::createInsecure()]);
$time = new Grpc\Timeval(1000);
- $state = $this->channel->watchConnectivityState(123, $time);
+ $state = $this->channel->watchConnectivityState(1, $time);
$this->assertTrue($state);
unset($time);
}