diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2014-11-06 11:29:51 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-11-06 12:21:01 -0500 |
commit | cf1280d2547eb95bd7020a885ce458ce26d968ba (patch) | |
tree | 79296e8a77698602bf59151944b95df2a1d3b5e7 /jstests/tool | |
parent | b144964acc83e3223900b09560edd8d8e025a625 (diff) | |
download | mongo-cf1280d2547eb95bd7020a885ce458ce26d968ba.tar.gz |
SERVER-15979 remove another mmap_v1ism from tool suite
Closes #864
Signed-off-by: Benety Goh <benety@mongodb.com>
Diffstat (limited to 'jstests/tool')
-rw-r--r-- | jstests/tool/restorewithauth.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/tool/restorewithauth.js b/jstests/tool/restorewithauth.js index 8baa0b97f24..afad147c9a9 100644 --- a/jstests/tool/restorewithauth.js +++ b/jstests/tool/restorewithauth.js @@ -27,7 +27,8 @@ for( var i = 0; i < 4; i++ ) { } // make sure the collection exists -assert.eq( foo.system.namespaces.count({name: "foo.bar"}), 1 ) +assert.eq( foo.runCommand({"listCollections": 1, + "filter": {"name": "bar"}}).collections.length, 1 ) //make sure it has no index except _id assert.eq(foo.bar.getIndexes().length, 1); |