summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
Diffstat (limited to 'jstests')
-rw-r--r--jstests/serial_run/srv-uri.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/serial_run/srv-uri.js b/jstests/serial_run/srv-uri.js
new file mode 100644
index 00000000000..b550c540d6c
--- /dev/null
+++ b/jstests/serial_run/srv-uri.js
@@ -0,0 +1,8 @@
+(function() {
+ "use strict";
+ const md = MongoRunner.runMongod({port: "27017", dbpath: MongoRunner.dataPath});
+ assert.neq(null, md, "unable to start mongod");
+ const exitCode = runMongoProgram('mongo', 'mongodb+srv://test1.test.build.10gen.cc.', '--eval', ';');
+ assert.eq(exitCode, 0, "Failed to connect with a `mongodb+srv://` style URI.");
+ MongoRunner.stopMongod(md);
+}());