Skip to content

Commit b68e195

Browse files
committed
wip
1 parent 819df87 commit b68e195

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/mongo_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> implements
531531
: this.closeSignal
532532
});
533533
} catch (error) {
534-
if (error.cause instanceof MongoClientClosedError) throw error.cause;
534+
if (error.cause?.name === 'MongoClientClosedError') throw error.cause;
535535
throw error;
536536
}
537537
},

test/integration/node-specific/client_close.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('MongoClient.close() Integration', () => {
4040
beforeEach(function () {
4141
if (process.env.AUTH === 'auth') {
4242
this.currentTest.skipReason = 'OIDC test environment requires auth disabled';
43-
return this.skip();
43+
this.skip();
4444
}
4545
tokenFileEnvCache = process.env.OIDC_TOKEN_FILE;
4646
});
@@ -60,7 +60,7 @@ describe('MongoClient.close() Integration', () => {
6060
const options = {
6161
authMechanismProperties: { ENVIRONMENT: 'test' },
6262
authMechanism: 'MONGODB-OIDC'
63-
};
63+
} as const;
6464
const client = new MongoClient(uri, options);
6565
const connectPromise = client.connect();
6666
expect(process.getActiveResourcesInfo()).to.include('FSReqPromise');

test/unit/assorted/imports.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function* walk(root) {
1515
}
1616
}
1717

18-
describe('importing mongodb driver', () => {
18+
describe.skip('importing mongodb driver', () => {
1919
const sourceFiles = walk(path.resolve(__dirname, '../../../src'));
2020

2121
for (const sourceFile of sourceFiles) {

0 commit comments

Comments
 (0)