mirror of
https://github.com/predis/predis.git
synced 2026-09-04 06:47:20 +00:00
Added additional timeout to make sure that index was created
This commit is contained in:
@@ -155,6 +155,9 @@ class FTSEARCH_Test extends PredisCommandTestCase
|
||||
$ftCreateResponse = $redis->ftcreate('idx_hash', $schema, $ftCreateArguments);
|
||||
$this->assertEquals('OK', $ftCreateResponse);
|
||||
|
||||
// Timeout to make sure that index created before search performed.
|
||||
usleep(2000);
|
||||
|
||||
$ftSearchArguments = new SearchArguments();
|
||||
$ftSearchArguments->addReturn(1, 'should_return');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user