Merge pull request #16693 from AspirinSJL/use_different_port

Use unique port in php test
pull/16649/head^2
Juanli Shen 7 years ago committed by GitHub
commit ccbad108e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/php/tests/unit_tests/ChannelTest.php

@ -599,10 +599,10 @@ class ChannelTest extends PHPUnit_Framework_TestCase
public function testPersistentChannelForceNewOldChannelIdle2() public function testPersistentChannelForceNewOldChannelIdle2()
{ {
$this->channel1 = new Grpc\Channel('localhost:50029', [ $this->channel1 = new Grpc\Channel('localhost:50032', [
"grpc_target_persist_bound" => 2, "grpc_target_persist_bound" => 2,
]); ]);
$this->channel2 = new Grpc\Channel('localhost:50029', []); $this->channel2 = new Grpc\Channel('localhost:50032', []);
// try to connect on channel2 // try to connect on channel2
$state = $this->channel1->getConnectivityState(true); $state = $this->channel1->getConnectivityState(true);

Loading…
Cancel
Save