Skip to content

Commit

Permalink
[Search] Refactor test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dgetu committed May 7, 2024
1 parent fff4d07 commit b27eb9c
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 251 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe("SearchClient", function (this: Suite) {
indexName: TEST_INDEX_NAME,
openAIClient,
} = await createClients<Hotel>(stableServiceVersion, recorder, TEST_INDEX_NAME));
await createIndex(indexClient, TEST_INDEX_NAME, stableServiceVersion);
await createIndex(indexClient, TEST_INDEX_NAME);
await delay(WAIT_TIME);
await populateIndex(searchClient, openAIClient);
});
Expand Down Expand Up @@ -429,7 +429,7 @@ describe("SearchClient", function (this: Suite) {
indexName: TEST_INDEX_NAME,
openAIClient,
} = await createClients<Hotel>(previewServiceVersion, recorder, TEST_INDEX_NAME));
await createIndex(indexClient, TEST_INDEX_NAME, previewServiceVersion);
await createIndex(indexClient, TEST_INDEX_NAME);
await delay(WAIT_TIME);
await populateIndex(searchClient, openAIClient);
});
Expand Down

0 comments on commit b27eb9c

Please sign in to comment.