Skip to content

Commit 65ccd28

Browse files
committed
NODE-802 test case showing working domain socket connection using MongoClient
1 parent 8b397f1 commit 65ccd28

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/functional/mongo_client_tests.js

+13
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,19 @@ exports["correctly error out when no socket available on MongoClient.connect"] =
437437
}
438438
}
439439

440+
exports["should correctly connect to mongodb using domain socket"] = {
441+
metadata: { requires: { topology: ['single'] } },
442+
443+
// The actual test we wish to run
444+
test: function(configuration, test) {
445+
var MongoClient = configuration.require.MongoClient;
446+
MongoClient.connect('mongodb:///tmp/mongodb-27017.sock/test', function(err, db) {
447+
test.equal(null, err);
448+
test.done();
449+
});
450+
}
451+
}
452+
440453
/**
441454
* @ignore
442455
*/

0 commit comments

Comments
 (0)