diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-11-09 19:01:39 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-11-09 19:01:39 -0500 |
commit | 774bb188f63a00b9936d3334edd56cafb16ffb8d (patch) | |
tree | 52f0f47671beddc7e02ec6554f3c71b7e592d7cd /jstests/mr_index.js | |
parent | d14cb30a7a1041e7e3f57f3837cf270f0bbd86d2 (diff) | |
download | mongo-774bb188f63a00b9936d3334edd56cafb16ffb8d.tar.gz |
fix smal oplog test
Diffstat (limited to 'jstests/mr_index.js')
-rw-r--r-- | jstests/mr_index.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/mr_index.js b/jstests/mr_index.js index b5da5c6ab0c..521d44d29f0 100644 --- a/jstests/mr_index.js +++ b/jstests/mr_index.js @@ -4,6 +4,7 @@ t.drop() outName = "mr_index_out" out = db[outName] +out.drop() t.insert( { tags : [ 1 ] } ) t.insert( { tags : [ 1 , 2 ] } ) @@ -26,17 +27,17 @@ ex = function(){ return out.find().sort( { value : 1 } ).explain() } -t.mapReduce( m , r , { out : outName } ) +res = t.mapReduce( m , r , { out : outName } ) assert.eq( "BasicCursor" , ex().cursor , "A1" ) out.ensureIndex( { value : 1 } ) assert.eq( "BtreeCursor value_1" , ex().cursor , "A2" ) assert.eq( 3 , ex().n , "A3" ) -t.mapReduce( m , r , { out : outName } ) +res = t.mapReduce( m , r , { out : outName } ) assert.eq( "BtreeCursor value_1" , ex().cursor , "B1" ) assert.eq( 3 , ex().n , "B2" ) - +res.drop() |