Skip to content

Commit

Permalink
Rearrange CallbackStrategyTest
Browse files Browse the repository at this point in the history
  • Loading branch information
merk committed May 11, 2016
1 parent 656fc15 commit 8a1f8fd
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@ public function testConnection()
});

$client = $this->_getClient($config);
$response = $client->request('/_aliases');

$this->assertEquals(1, $count);
$strategy = $client->getConnectionPool()->getStrategy();
$this->assertInstanceOf('Elastica\Connection\Strategy\CallbackStrategy', $strategy);

$response = $client->request('/_aliases');
$this->assertEquals(1, $count);
$this->assertTrue($response->isOk());

$strategy = $client->getConnectionStrategy();

$this->assertInstanceOf('Elastica\Connection\Strategy\CallbackStrategy', $strategy);
}
}

0 comments on commit 8a1f8fd

Please sign in to comment.