Skip to content

Commit 23d1a17

Browse files
committed
replace arg as a function
1 parent 809aa9a commit 23d1a17

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/integration/tools/mongodb/delete/dropIndex.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,11 @@ describe.each([{ vectorSearchEnabled: false }, { vectorSearchEnabled: true }])(
395395
});
396396

397397
describe.each([
398-
{ description: "search", indexName: getSearchIndexName() },
399-
{ description: "vector search", indexName: getVectorIndexName() },
400-
])("and attempting to delete an existing $description index", ({ indexName }) => {
398+
{ description: "search", getIndexName: getSearchIndexName },
399+
{ description: "vector search", getIndexName: getVectorIndexName },
400+
])("and attempting to delete an existing $description index", ({ getIndexName }) => {
401401
it("should succeed in deleting the index", async () => {
402+
const indexName = getIndexName();
402403
const collection = getMoviesCollection();
403404
let indexes = await collection.listSearchIndexes().toArray();
404405
expect(indexes.find((idx) => idx.name === indexName)).toBeDefined();

0 commit comments

Comments
 (0)