diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b9d5e31d..fe2d97ac 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,25 +1,17 @@ - - - - ./tests - - - - - src/ - - - - - - + + + + ./tests + + + + + + + + + src/ + + diff --git a/tests/Settings/EmbeddersTest.php b/tests/Settings/EmbeddersTest.php index aa3b0c55..4968438b 100644 --- a/tests/Settings/EmbeddersTest.php +++ b/tests/Settings/EmbeddersTest.php @@ -38,7 +38,7 @@ public function testUpdateEmbeddersWithOpenAi(): void $promise = $index->updateEmbedders(['myEmbedder' => $embedderConfig]); $this->assertIsValidPromise($promise); - $index->waitForTask($promise['taskUid']); + $index->waitForTask($promise['taskUid'], 10000); $embedders = $index->getEmbedders(); $embedderConfig['apiKey'] = 'updateEmbedders(['myEmbedder' => $embedderConfig]); $this->assertIsValidPromise($promise); - $index->waitForTask($promise['taskUid']); + $index->waitForTask($promise['taskUid'], 10000); $embedders = $index->getEmbedders(); @@ -95,11 +95,11 @@ public function testResetEmbedders(): void $promise = $index->updateEmbedders(['myEmbedder' => $embedderConfig]); $this->assertIsValidPromise($promise); - $index->waitForTask($promise['taskUid']); + $index->waitForTask($promise['taskUid'], 10000); $promise = $index->resetEmbedders(); $this->assertIsValidPromise($promise); - $index->waitForTask($promise['taskUid']); + $index->waitForTask($promise['taskUid'], 10000); self::assertEmpty($index->getEmbedders()); }