Skip to content

Commit 0224235

Browse files
comments
1 parent d90196e commit 0224235

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ describe('Client Metadata Update Prose Tests', function () {
373373
const originalDriverInfo = { name: 'library', version: '1.2', platform: 'Library Platform' };
374374
let initialClientMetadata: ClientMetadata;
375375
let updatedClientMetadata: ClientMetadata;
376+
377+
// TODO(NODE-6599): mongodb-legacy adds additional client metadata, breaking these prose tests
376378
let client: RawMongoClient;
377379

378380
// | Case | Name | Version | Platform |
@@ -486,8 +488,10 @@ describe('Client Metadata Update Prose Tests', function () {
486488
});
487489

488490
describe('Test 4: Metadata is not appended if identical to initial metadata', function () {
489-
let initialClientMetadata;
490-
let updatedClientMetadata;
491+
let initialClientMetadata: ClientMetadata;
492+
let updatedClientMetadata: ClientMetadata;
493+
// TODO(NODE-6599): mongodb-legacy adds additional client metadata, breaking these prose tests
494+
let client: RawMongoClient;
491495

492496
// 1. Create a `MongoClient` instance with the following:
493497
// - `maxIdleTimeMS` set to `1ms`
@@ -538,6 +542,10 @@ describe('Client Metadata Update Prose Tests', function () {
538542
await sleep(5);
539543
});
540544

545+
afterEach(async function () {
546+
await client.close();
547+
});
548+
541549
it('appends the metadata', async function () {
542550
// 5. Append the following `DriverInfoOptions` to the `MongoClient` metadata:
543551
// | Field | Value |

0 commit comments

Comments
 (0)