summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHana Pearlman <hana.pearlman@mongodb.com>2021-04-08 13:00:07 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-08 21:44:02 +0000
commitd8c427452b50ff985c2e9054ca0149ee23a093ab (patch)
treebf7c302c79a1a7c6a6f08fdb86de15eebd8434ae
parentdbb4d41af08a99985d8585023faf0948c16ab80d (diff)
downloadmongo-d8c427452b50ff985c2e9054ca0149ee23a093ab.tar.gz
SERVER-55903: Move hello_feature_compatibility_version test into noPassthrough
-rw-r--r--jstests/noPassthrough/hello_feature_compatibility_version.js (renamed from jstests/noPassthroughWithMongod/hello_feature_compatibility_version.js)5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/hello_feature_compatibility_version.js b/jstests/noPassthrough/hello_feature_compatibility_version.js
index bbf82e8614c..20aab513111 100644
--- a/jstests/noPassthroughWithMongod/hello_feature_compatibility_version.js
+++ b/jstests/noPassthrough/hello_feature_compatibility_version.js
@@ -6,7 +6,8 @@
(function() {
"use strict";
-const adminDB = db.getSiblingDB("admin");
+const conn = MongoRunner.runMongod();
+const adminDB = conn.getDB("admin");
// This test manually runs hello/isMaster with the 'internalClient' field, which means that to the
// mongod, the connection appears to be from another server. This makes mongod to return a
@@ -89,4 +90,6 @@ if (lastContinuousFCV !== lastLTSFCV) {
runTest(lastLTSFCV, res.maxWireVersion - numVersionsSinceLastLTS, res.maxWireVersion, "hello");
runTest(lastLTSFCV, res.maxWireVersion - numVersionsSinceLastLTS, res.maxWireVersion, "isMaster");
runTest(lastLTSFCV, res.maxWireVersion - numVersionsSinceLastLTS, res.maxWireVersion, "ismaster");
+
+MongoRunner.stopMongod(conn);
})();