Skip to content

Commit b86ee69

Browse files
committed
test(setupDatabases): clean up clients
Fixes NODE-1913
1 parent 59a1371 commit b86ee69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/functional/shared.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function setupDatabase(configuration, dbsToClean) {
3636
.then(() => client.db(dbName).dropDatabase({ writeConcern: { w: 1 } })),
3737
Promise.resolve()
3838
)
39-
);
39+
)
40+
.then(() => client.close(), () => client.close());
4041
}
4142

4243
function makeCleanupFn(client) {

0 commit comments

Comments
 (0)