diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-08-05 17:59:59 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-08-05 17:59:59 -0400 |
commit | d2092af24507de48d496354eedf8e190abf7b7e1 (patch) | |
tree | accab9e68862b976f9386dc607a6dfee046f6f46 | |
parent | abf6327727be5a0b2fb0f072f0bf5c282d0aa8ad (diff) | |
download | mongo-d2092af24507de48d496354eedf8e190abf7b7e1.tar.gz |
fix capped test
-rw-r--r-- | jstests/capped2.js | 4 | ||||
-rw-r--r-- | jstests/capped5.js | 1 | ||||
-rw-r--r-- | jstests/cappeda.js (renamed from jstests/scan_capped_id.js) | 0 |
3 files changed, 2 insertions, 3 deletions
diff --git a/jstests/capped2.js b/jstests/capped2.js index 1f8bf1d01c6..65bb82f4c07 100644 --- a/jstests/capped2.js +++ b/jstests/capped2.js @@ -47,7 +47,7 @@ function checkDecreasing( i ) { for( i = 0 ;; ++i ) { debug( "capped 2: " + i ); - tzz.save( val[ i ] ); + tzz.insert( val[ i ] ); if ( tzz.count() == 0 ) { assert( i > 100, "K" ); break; @@ -57,6 +57,6 @@ for( i = 0 ;; ++i ) { for( i = 600 ; i >= 0 ; --i ) { debug( "capped 2: " + i ); - tzz.save( val[ i ] ); + tzz.insert( val[ i ] ); checkDecreasing( i ); } diff --git a/jstests/capped5.js b/jstests/capped5.js index f56d2278a7e..be6c27d7256 100644 --- a/jstests/capped5.js +++ b/jstests/capped5.js @@ -9,7 +9,6 @@ db.createCollection( tn , {capped: true, size: 1024 * 1024 * 1 } ); t.insert( { _id : 5 , x : 11 , z : 52 } ); assert.eq( 0 , t.getIndexKeys().length , "A0" ) assert.eq( 52 , t.findOne( { x : 11 } ).z , "A1" ); -assert.eq( 52 , t.findOne( { _id : 5, x : 11 } ).z , "A2" ); t.ensureIndex( { _id : 1 } ) t.ensureIndex( { x : 1 } ) diff --git a/jstests/scan_capped_id.js b/jstests/cappeda.js index 9869bf00b85..9869bf00b85 100644 --- a/jstests/scan_capped_id.js +++ b/jstests/cappeda.js |