aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/tests/unit_tests/CallTest.php
diff options
context:
space:
mode:
authorGravatar ZhouyihaiDing <ddyihai@google.com>2018-05-31 16:02:46 -0700
committerGravatar ZhouyihaiDing <ddyihai@google.com>2018-06-01 08:47:11 -0700
commit4677c70684c182e99c67bff7b195cd2dadfa2cf5 (patch)
treede935fd2fe40db3e8243e32a470f059586df65d3 /src/php/tests/unit_tests/CallTest.php
parent2357b2de2c031a93c2af585bcc07de1c37102365 (diff)
PHP: fix flaky tests
Diffstat (limited to 'src/php/tests/unit_tests/CallTest.php')
-rw-r--r--src/php/tests/unit_tests/CallTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/php/tests/unit_tests/CallTest.php b/src/php/tests/unit_tests/CallTest.php
index c5e1890a98..be1d77fe7a 100644
--- a/src/php/tests/unit_tests/CallTest.php
+++ b/src/php/tests/unit_tests/CallTest.php
@@ -24,12 +24,14 @@ class CallTest extends PHPUnit_Framework_TestCase
public static function setUpBeforeClass()
{
self::$server = new Grpc\Server([]);
- self::$port = self::$server->addHttp2Port('0.0.0.0:0');
+ self::$port = self::$server->addHttp2Port('0.0.0.0:53000');
}
public function setUp()
{
- $this->channel = new Grpc\Channel('localhost:'.self::$port, []);
+ $this->channel = new Grpc\Channel('localhost:'.self::$port, [
+ 'force_new' => true,
+ ]);
$this->call = new Grpc\Call($this->channel,
'/foo',
Grpc\Timeval::infFuture());