@@ -373,6 +373,8 @@ describe('Client Metadata Update Prose Tests', function () {
373
373
const originalDriverInfo = { name : 'library' , version : '1.2' , platform : 'Library Platform' } ;
374
374
let initialClientMetadata : ClientMetadata ;
375
375
let updatedClientMetadata : ClientMetadata ;
376
+
377
+ // TODO(NODE-6599): mongodb-legacy adds additional client metadata, breaking these prose tests
376
378
let client : RawMongoClient ;
377
379
378
380
// | Case | Name | Version | Platform |
@@ -486,8 +488,10 @@ describe('Client Metadata Update Prose Tests', function () {
486
488
} ) ;
487
489
488
490
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 ;
491
495
492
496
// 1. Create a `MongoClient` instance with the following:
493
497
// - `maxIdleTimeMS` set to `1ms`
@@ -538,6 +542,10 @@ describe('Client Metadata Update Prose Tests', function () {
538
542
await sleep ( 5 ) ;
539
543
} ) ;
540
544
545
+ afterEach ( async function ( ) {
546
+ await client . close ( ) ;
547
+ } ) ;
548
+
541
549
it ( 'appends the metadata' , async function ( ) {
542
550
// 5. Append the following `DriverInfoOptions` to the `MongoClient` metadata:
543
551
// | Field | Value |
0 commit comments