summaryrefslogtreecommitdiff
path: root/jstests/rename3.js
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2014-02-19 12:45:53 -0500
committerMatt Kangas <matt.kangas@mongodb.com>2014-03-03 22:54:10 -0500
commit3660343e0b4627d2fee4afb89b74d32644d16d18 (patch)
treeffa571e0b73ce56d73c2ae23f458f0db772ef782 /jstests/rename3.js
parent9fae141a1f3fe652fa6002e47722c5ceb051cffb (diff)
downloadmongo-3660343e0b4627d2fee4afb89b74d32644d16d18.tar.gz
SERVER-12127 migrate js tests to jscore suite when not related to writes
Migrate js tests starting from j-z. Include SERVER-12920 Update use_power_of_2.js Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Diffstat (limited to 'jstests/rename3.js')
-rw-r--r--jstests/rename3.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/jstests/rename3.js b/jstests/rename3.js
deleted file mode 100644
index 5e1005f8176..00000000000
--- a/jstests/rename3.js
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-a = db.rename3a
-b = db.rename3b
-
-a.drop();
-b.drop()
-
-a.save( { x : 1 } );
-b.save( { x : 2 } );
-
-assert.eq( 1 , a.findOne().x , "before 1a" );
-assert.eq( 2 , b.findOne().x , "before 2a" );
-
-res = b.renameCollection( a._shortName );
-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 )
-assert.eq( 1 , res.ok , "should succeed:" + tojson( res ) );
-
-assert.eq( 2 , a.findOne().x , "after 1" );
-assert.isnull( b.findOne() , "after 2" );