summaryrefslogtreecommitdiff
path: root/jstests/core/loadserverscripts.js
diff options
context:
space:
mode:
authorPavi Vetriselvan <pavithra.vetriselvan@mongodb.com>2020-08-11 11:52:27 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-17 16:11:37 +0000
commite1daee88b3f4ef640e677143d210432e02a8fac2 (patch)
tree0cf2b8364c2c6743cac12d238aa856c1bc0373d0 /jstests/core/loadserverscripts.js
parent2aaceb6fd0e5fbccbc2183138f37e45847d55cd3 (diff)
downloadmongo-e1daee88b3f4ef640e677143d210432e02a8fac2.tar.gz
SERVER-49996 Ensure getSiblingDB() is used instead of getSisterDB()
Diffstat (limited to 'jstests/core/loadserverscripts.js')
-rw-r--r--jstests/core/loadserverscripts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/loadserverscripts.js b/jstests/core/loadserverscripts.js
index 641a07245fe..8e491a8fc7c 100644
--- a/jstests/core/loadserverscripts.js
+++ b/jstests/core/loadserverscripts.js
@@ -7,7 +7,7 @@
// Test db.loadServerScripts()
-var testdb = db.getSisterDB("loadserverscripts");
+var testdb = db.getSiblingDB("loadserverscripts");
jsTest.log("testing db.loadServerScripts()");
var x;
@@ -52,7 +52,7 @@ assert.eq(x, "myfunc", "Checking that myfunc() returns the correct value");
// Insert value into collection from another process
var coproc =
- startParallelShell('db.getSisterDB("loadserverscripts").system.js.insert' +
+ startParallelShell('db.getSiblingDB("loadserverscripts").system.js.insert' +
' ( {_id: "myfunc2", "value": function(){ return "myfunc2"; } } );');
// wait for results
coproc();