Skip to content

Commit 6933bdd

Browse files
committed
mongodb test
1 parent f6540e0 commit 6933bdd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/instrumentation-mongodb/test/mongodb-v3.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ describe('MongoDBInstrumentation-Tracing-v3', () => {
104104
}
105105
});
106106

107-
after(() => {
107+
after(done => {
108108
if (client) {
109-
client.close();
109+
// @ts-ignore -- v5 removed callback support
110+
client.close(done);
110111
}
111112
});
112113

@@ -636,9 +637,10 @@ describe('MongoDBInstrumentation-Tracing-v3', () => {
636637
done();
637638
});
638639
});
639-
after(() => {
640+
after(done => {
640641
if (client) {
641-
client.close();
642+
// @ts-ignore -- v5 removed callback support
643+
client.close(done);
642644
}
643645
});
644646
it('should generate correct span attributes', done => {

0 commit comments

Comments
 (0)