0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

SERVER-12127 migrate js tests to jscore suite when not related to writes

This commit is contained in:
Randolph Tan 2014-03-03 11:17:44 -05:00
parent fafb7dad7b
commit 779e4d12da
2 changed files with 3 additions and 25 deletions

View File

@ -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();
}

View File

@ -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" );