Skip to content

Commit

Permalink
test(setupDatabases): clean up clients
Browse files Browse the repository at this point in the history
Fixes NODE-1913
  • Loading branch information
daprahamian committed Apr 1, 2019
1 parent 59a1371 commit b86ee69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ function setupDatabase(configuration, dbsToClean) {
.then(() => client.db(dbName).dropDatabase({ writeConcern: { w: 1 } })),
Promise.resolve()
)
);
)
.then(() => client.close(), () => client.close());
}

function makeCleanupFn(client) {
Expand Down

0 comments on commit b86ee69

Please sign in to comment.