mongo/jstests/serial_run/srv-uri.js
Zac 591928c619 SERVER-108478 JS formatted by prettier and remove clang-format (#39656)
GitOrigin-RevId: 6c8f6aded47f260aa4f7c231b17dae3302cb1e04
2025-08-21 17:27:09 +00:00

7 lines
379 B
JavaScript

const md = MongoRunner.runMongod({port: "27017", dbpath: MongoRunner.dataPath});
assert.neq(null, md, "unable to start mongod");
const targetURI = "mongodb+srv://test1.test.build.10gen.cc./?ssl=false";
const exitCode = runMongoProgram("mongo", targetURI, "--eval", ";");
assert.eq(exitCode, 0, "Failed to connect with a `mongodb+srv://` style URI.");
MongoRunner.stopMongod(md);