summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-03-03 11:17:44 -0500
committerRandolph Tan <randolph@10gen.com>2014-03-03 11:17:44 -0500
commit779e4d12da9e3fa769ea3cccd9f00082b6ed434f (patch)
tree606eecd039485cf1b6c9df716d25c6b4e3ced7a6
parentfafb7dad7b87b3d6a0c359ad02b6bcd0ef7a79f7 (diff)
downloadmongo-779e4d12da9e3fa769ea3cccd9f00082b6ed434f.tar.gz
SERVER-12127 migrate js tests to jscore suite when not related to writes
-rw-r--r--jstests/index12.js24
-rw-r--r--jstests/slowNightly/fsync2.js (renamed from jstests/fsync2.js)4
2 files changed, 3 insertions, 25 deletions
diff --git a/jstests/index12.js b/jstests/index12.js
deleted file mode 100644
index 7eb796b46ee..00000000000
--- a/jstests/index12.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// Test renaming a collection during a background index build. SERVER-4820
-
-if ( 0 ) { // SERVER-4820
-c = db.jstests_index12;
-c.drop();
-
-s = startParallelShell (
-' for( i = 0; i < 100; ++i ) {' +
-' db.getSisterDB( "admin" ).runCommand( {renameCollection:"test.jstests_index12", to:"test.jstests_index12b"} );' +
-' db.jstests_index12b.drop();' +
-' sleep( 30 );' +
-' }'
-);
-
-for( i = 0; i < 10; ++i ) {
- for( j = 0; j < 1000; ++j ) {
- c.save( {a:j} );
- }
- c.ensureIndex( {i:1}, {background:true} );
- assert( !db.getLastError() );
-}
-
-s();
-} \ No newline at end of file
diff --git a/jstests/fsync2.js b/jstests/slowNightly/fsync2.js
index e3be9bfcd76..bdf956f30f2 100644
--- a/jstests/fsync2.js
+++ b/jstests/slowNightly/fsync2.js
@@ -13,7 +13,9 @@ if ( db.getSisterDB("local").slaves.count() > 0 ) {
function doTest() {
db.fsync2.drop();
-
+ // Make write ops asynchronous so the test won't hang when in fsync lock mode.
+ db.getMongo().forceWriteMode('legacy');
+
db.fsync2.save( {x:1} );
d = db.getSisterDB( "admin" );