diff options
Diffstat (limited to 'jstests/core/rename3.js')
-rw-r--r-- | jstests/core/rename3.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/rename3.js b/jstests/core/rename3.js index 5e1005f8176..31a91772a75 100644 --- a/jstests/core/rename3.js +++ b/jstests/core/rename3.js @@ -1,10 +1,10 @@ -a = db.rename3a -b = db.rename3b +a = db.rename3a; +b = db.rename3b; a.drop(); -b.drop() +b.drop(); a.save( { x : 1 } ); b.save( { x : 2 } ); @@ -18,7 +18,7 @@ assert.eq( 0 , res.ok , "should fail: " + tojson( res ) ); assert.eq( 1 , a.findOne().x , "before 1b" ); assert.eq( 2 , b.findOne().x , "before 2b" ); -res = b.renameCollection( a._shortName , true ) +res = b.renameCollection( a._shortName , true ); assert.eq( 1 , res.ok , "should succeed:" + tojson( res ) ); assert.eq( 2 , a.findOne().x , "after 1" ); |