diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-10-09 12:02:07 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-10-13 09:43:40 -0400 |
commit | 25b498934fea1c93ae82823ee13cff0866ed6007 (patch) | |
tree | 9dd86577760e216f444aca7a089bf002040dcb35 /jstests/replsets/drain.js | |
parent | 4877c6b197438495d9fdd88317d4b79d565014c6 (diff) | |
download | mongo-25b498934fea1c93ae82823ee13cff0866ed6007.tar.gz |
SERVER-20646 Get rid of CommonErrorCodes
Replace all usages with the standard ErrorCodes enumeration.
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 059f3fc4188..1d73411ae3f 100644 --- a/jstests/replsets/drain.js +++ b/jstests/replsets/drain.js @@ -68,13 +68,13 @@ jsTestLog('New primary should not be readable yet, without slaveOk bit'); var res = secondary.getDB("foo").runCommand({find: "foo"}); assert.commandFailed(res); - assert.eq(ErrorCodes.NotMasterNoSlaveOkCode, res.code, + assert.eq(ErrorCodes.NotMasterNoSlaveOk, res.code, "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.NotMasterOrSecondaryCode, res.code, + assert.eq(ErrorCodes.NotMasterOrSecondary, res.code, "find failed with unexpected error code: " + tojson(res)); secondary.slaveOk = false; |