Added additional timeout to make sure that index was created

This commit is contained in:
vladvildanov
2023-08-01 12:50:52 +03:00
parent 02b765d7cf
commit 0d1055ab73
@@ -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');