summaryrefslogtreecommitdiff
path: root/jstests/replsets/drain.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/drain.js')
-rw-r--r--jstests/replsets/drain.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/jstests/replsets/drain.js b/jstests/replsets/drain.js
index 6561bba8ce6..a81d45f1d10 100644
--- a/jstests/replsets/drain.js
+++ b/jstests/replsets/drain.js
@@ -75,15 +75,7 @@
"find failed with unexpected error code: " + tojson(res));
// Nor should it be readable with the slaveOk bit.
secondary.slaveOk = true;
- res = secondary.getDB("foo").runCommand({find: "foo"});
- assert.commandFailed(res);
- assert.eq(ErrorCodes.NotMasterOrSecondary,
- res.code,
- "find failed with unexpected error code: " + tojson(res));
- secondary.slaveOk = false;
-
- // check to make sure reads are not possible during draining
- assert.eq('node is in drain mode', res.errmsg);
+ assert.commandWorked(secondary.getDB("foo").runCommand({find: "foo"}));
assert.commandFailedWithCode(
secondary.adminCommand({