Basho\Tests\NodeUnreachableTest::testMaxConnections PHP Method

testMaxConnections() public method

public testMaxConnections ( )
    public function testMaxConnections()
    {
        // grab three unreachable nodes
        $nodes = $this->getCluster();
        $riak = new Riak($nodes, ['max_connect_attempts' => 2]);
        $response = (new Command\Builder\Ping($riak))->build()->execute();
        $this->assertFalse($response);
    }