Skip to content

Commit 0817688

Browse files
chore: replace another instance of provider with mongoclient
1 parent ab3ccae commit 0817688

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/integration/tools/mongodb/create/createIndex.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,7 @@ describeWithMongoDB(
315315
it("fails to create a vector search index", async () => {
316316
await integration.connectMcpClient();
317317
const collection = new ObjectId().toString();
318-
await integration
319-
.mcpServer()
320-
.session.serviceProvider.createCollection(integration.randomDbName(), collection);
318+
await integration.mongoClient().db(integration.randomDbName()).createCollection(collection);
321319

322320
const response = await integration.mcpClient().callTool({
323321
name: "create-index",

0 commit comments

Comments
 (0)