From 4677c70684c182e99c67bff7b195cd2dadfa2cf5 Mon Sep 17 00:00:00 2001 From: ZhouyihaiDing Date: Thu, 31 May 2018 16:02:46 -0700 Subject: PHP: fix flaky tests --- src/php/tests/unit_tests/CallTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/php/tests/unit_tests/CallTest.php') 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()); -- cgit v1.2.3