From c828aab3b13a762d913d600f03bf5b9edecd0031 Mon Sep 17 00:00:00 2001 From: Jessica Lord Date: Fri, 17 Nov 2017 13:11:55 -0500 Subject: [PATCH] fix(mongo client): close client before calling done --- test/functional/mongo_client_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/mongo_client_tests.js b/test/functional/mongo_client_tests.js index 34daec12a9..13ddb71291 100644 --- a/test/functional/mongo_client_tests.js +++ b/test/functional/mongo_client_tests.js @@ -423,8 +423,8 @@ describe('MongoClient', function() { MongoClient.connect('user:password@localhost:27017/test', function(err, client) { test.notEqual(err, null); test.notEqual(err, undefined); - done(); client.close(); + done(); }); } });