diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-03-12 17:27:43 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-03-12 17:28:36 -0400 |
commit | 39e06c9ef8c797ad626956b564ac9ebe295cbaf3 (patch) | |
tree | bfa2742fe1a814980def015b29dc8d5bfaf4bad3 /jstests/core/counta.js | |
parent | 8125c55a251805899552d0af4776930216223703 (diff) | |
download | mongo-39e06c9ef8c797ad626956b564ac9ebe295cbaf3.tar.gz |
SERVER-22611 Sharding catalog cache refactor
Diffstat (limited to 'jstests/core/counta.js')
-rw-r--r-- | jstests/core/counta.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/core/counta.js b/jstests/core/counta.js index 26ce4d2269e..a554943483b 100644 --- a/jstests/core/counta.js +++ b/jstests/core/counta.js @@ -23,7 +23,5 @@ }); // count must return error if collection name is absent - var res = assert.commandFailed(db.runCommand("count")); - assert.eq(ErrorCodes.InvalidNamespace, res.code); - + assert.commandFailedWithCode(db.runCommand("count"), ErrorCodes.InvalidNamespace); })(); |