Skip to content

Commit 18c72c0

Browse files
fix new tests on serverApi configurations
1 parent d3e4740 commit 18c72c0

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

package-lock.json

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/integration/mongodb-handshake/mongodb-handshake.prose.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,10 @@ describe('Client Metadata Update Prose Tests', function () {
504504
// 1. Create a `MongoClient` instance with:
505505
// - `maxIdleTimeMS` set to `1ms`
506506

507-
client = new RawMongoClient(this.configuration.url(), { maxIdleTimeMS: 1 });
508-
507+
client = new RawMongoClient(this.configuration.url(), {
508+
maxIdleTimeMS: 1,
509+
serverApi: this.configuration.serverApi
510+
});
509511
// 2. Append the following `DriverInfoOptions` to the `MongoClient` metadata:
510512
// | Field | Value |
511513
// | -------- | ---------------- |
@@ -685,7 +687,8 @@ describe('Client Metadata Update Prose Tests', function () {
685687
name: 'library',
686688
version: '1.2',
687689
platform: 'Library Platform'
688-
}
690+
},
691+
serverApi: this.configuration.serverApi
689692
});
690693

691694
// 2. Send a `ping` command to the server and verify that the command succeeds.

0 commit comments

Comments
 (0)