diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-23 01:29:38 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-23 01:29:38 -0500 |
commit | e47b9a5452dfeae5d03cee09d56f9ff93edef285 (patch) | |
tree | c7dac098b242489d9e99889a8688e6edcb7451b6 /jstests/remove7.js | |
parent | 53cf01bcc882957086574588b48b1025a7448d49 (diff) | |
download | mongo-e47b9a5452dfeae5d03cee09d56f9ff93edef285.tar.gz |
correct fix for SERVER-436
Diffstat (limited to 'jstests/remove7.js')
-rw-r--r-- | jstests/remove7.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/remove7.js b/jstests/remove7.js index 4bce02e2130..50c6ac189bc 100644 --- a/jstests/remove7.js +++ b/jstests/remove7.js @@ -24,8 +24,12 @@ t.ensureIndex( { tags : 1 } ); for ( i=0; i<200; i++ ){ for ( var j=0; j<10; j++ ) t.save( { tags : getTags( 100 ) } ); - t.remove( { tags : { $in : getTags( 10 ) } } ); + var q = { tags : { $in : getTags( 10 ) } }; + var before = t.find( q ).count(); + t.remove( q ); var o = db.getLastErrorObj(); + var after = t.find( q ).count(); + assert.eq( 0 , after , "not zero after!" ); assert.isnull( o.err , "error: " + tojson( o ) ); } |