Skip to content

Commit 591a74e

Browse files
committed
Add refresh to test to prevent it from failing randomly
1 parent dc63399 commit 591a74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib/Elastica/Test/Transport/HttpTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ public function testPostWith0Body()
216216
$client = new Client();
217217

218218
$index = $client->getIndex('elastica_0_body');
219-
$index->refresh();
220219
$index->create(array(), true);
220+
$index->refresh();
221221

222222
$tokens = $index->analyze('0');
223223

0 commit comments

Comments
 (0)