We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b397f1 commit 65ccd28Copy full SHA for 65ccd28
test/functional/mongo_client_tests.js
@@ -437,6 +437,19 @@ exports["correctly error out when no socket available on MongoClient.connect"] =
437
}
438
439
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
453
/**
454
* @ignore
455
*/
0 commit comments