diff --git a/tests/Collection/SearchIndexFunctionalTest.php b/tests/Collection/SearchIndexFunctionalTest.php index f9aa07b19..0c88ac814 100644 --- a/tests/Collection/SearchIndexFunctionalTest.php +++ b/tests/Collection/SearchIndexFunctionalTest.php @@ -22,6 +22,8 @@ /** * Functional tests for the Atlas Search index management. + * + * @see https://github.com/mongodb/specifications/blob/master/source/index-management/index-management.rst */ class SearchIndexFunctionalTest extends FunctionalTestCase { @@ -181,6 +183,10 @@ private function allIndexesAreQueryable(array $indexes): bool if (! $index->queryable) { return false; } + + if (! $index->status === 'READY') { + return false; + } } return true;