diff options
author | Ali Mir <ali.mir@mongodb.com> | 2020-09-16 19:33:30 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-28 18:05:55 +0000 |
commit | 93cff71bfc5b28d0724e9c19f52041f249fb854c (patch) | |
tree | ea3de0eecbf90d8f84db5dfe71d5c4138c0224f4 /jstests/replsets/drain.js | |
parent | f509116d2db0aa550d05c77f385402cd0d1406b4 (diff) | |
download | mongo-93cff71bfc5b28d0724e9c19f52041f249fb854c.tar.gz |
SERVER-50651 Replace occurrences of isMaster command with hello in replsets jstests
Diffstat (limited to 'jstests/replsets/drain.js')
-rw-r--r-- | jstests/replsets/drain.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/drain.js b/jstests/replsets/drain.js index bd944eb492a..e65a0b1baae 100644 --- a/jstests/replsets/drain.js +++ b/jstests/replsets/drain.js @@ -63,7 +63,7 @@ replSet.waitForState(secondary, ReplSetTest.State.PRIMARY); // Ensure new primary is not yet writable jsTestLog('New primary should not be writable yet'); assert.writeError(secondary.getDB("foo").flag.insert({sentinel: 2})); -assert(!secondary.getDB("admin").runCommand({"isMaster": 1}).ismaster); +assert(!secondary.getDB("admin").runCommand({"hello": 1}).isWritablePrimary); // Ensure new primary is not yet readable without secondaryOk bit. secondary.setSecondaryOk(false); @@ -77,7 +77,7 @@ assert.eq(ErrorCodes.NotPrimaryNoSecondaryOk, secondary.setSecondaryOk(); assert.commandWorked(secondary.getDB("foo").runCommand({find: "foo"})); -assert(!secondary.adminCommand({"isMaster": 1}).ismaster); +assert(!secondary.adminCommand({"hello": 1}).isWritablePrimary); // Allow draining to complete jsTestLog('Disabling fail point on new primary to allow draining to complete'); |