|
|
@ -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); |
|
|
|