diff options
author | Ken Payson <kpayson@google.com> | 2016-12-01 09:57:30 -0800 |
---|---|---|
committer | Ken Payson <kpayson@google.com> | 2016-12-01 09:57:30 -0800 |
commit | 02d2807b30321ed31d7e23a8a8e19f3ea821ab0e (patch) | |
tree | 30f8e2744b13ee971708c85a8fac9fcf0f47483c /src/php/tests/unit_tests/ServerTest.php | |
parent | d960c8b166eb1160714d3532d567364722940137 (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/ServerTest.php')
-rw-r--r-- | src/php/tests/unit_tests/ServerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php/tests/unit_tests/ServerTest.php b/src/php/tests/unit_tests/ServerTest.php index f2346ab113..5f40202f18 100644 --- a/src/php/tests/unit_tests/ServerTest.php +++ b/src/php/tests/unit_tests/ServerTest.php @@ -67,9 +67,9 @@ class ServerTest extends PHPUnit_Framework_TestCase public function testRequestCall() { $this->server = new Grpc\Server(); - $port = $this->server->addHttp2Port('0.0.0.0:8888'); + $port = $this->server->addHttp2Port('0.0.0.0:0'); $this->server->start(); - $channel = new Grpc\Channel('localhost:8888', + $channel = new Grpc\Channel('localhost:' . $port, ['credentials' => Grpc\ChannelCredentials::createInsecure()]); $deadline = Grpc\Timeval::infFuture(); |