From 54921ae594ad644081b37163baadcd9ffcfacfb9 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 24 May 2010 23:51:24 -0700 Subject: SERVER-109 basic getmore --- jstests/or4.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'jstests/or4.js') diff --git a/jstests/or4.js b/jstests/or4.js index 6f9941b4428..710d411024c 100644 --- a/jstests/or4.js +++ b/jstests/or4.js @@ -53,7 +53,8 @@ assert.eq.automsg( "3", "t.count( {z:1} )" ); assert.eq.automsg( "3", "t.find( {$or:[{a:2},{b:3}]} ).toArray().length" ); checkArrs( "t.find().toArray()", "t.find( {$or:[{a:2},{b:3}]} ).toArray()" ); -//t.save( {a:2} ); -//t.save( {a:2} ); +assert.eq.automsg( "3", "t.find( {$or:[{a:2},{b:3}]} ).batchSize( 2 ).toArray().length" ); -//assert.eq.automsg( "3", "t.find( {$or:[{a:2},{b:3}]} ).batchSize( 2 ).toArray().length" ); +t.save( {a:2} ); + +assert.eq.automsg( "4", "t.find( {$or:[{a:2},{b:3}]} ).batchSize( 2 ).toArray().length" ); \ No newline at end of file -- cgit v1.2.1