summaryrefslogtreecommitdiff
path: root/jstests/serial_run/srv-uri.js
blob: 1652e3fa8f29c300f261f050586b5b4808351087 (plain)
1
2
3
4
5
6
7
8
9
(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);
})();