From 9dac9ae4ae4e1d12e88d9ffacbeb5384307b1d2e Mon Sep 17 00:00:00 2001 From: mike o'brien Date: Fri, 17 Oct 2014 08:57:47 -0400 Subject: SERVER-15703 use w=1 for dumprestore test Closes #830 Signed-off-by: Benety Goh --- jstests/tool/dumprestoreWithNoOptions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'jstests/tool') diff --git a/jstests/tool/dumprestoreWithNoOptions.js b/jstests/tool/dumprestoreWithNoOptions.js index d9807eb9b6b..ba4aa85d817 100644 --- a/jstests/tool/dumprestoreWithNoOptions.js +++ b/jstests/tool/dumprestoreWithNoOptions.js @@ -40,7 +40,7 @@ db.dropDatabase(); assert.eq( 0, db.capped.count(), "capped not dropped"); assert.eq( 0, db.system.indexes.count(), "indexes not dropped" ); -t.runTool( "restore" , "--dir" , t.ext , "--noOptionsRestore"); +t.runTool( "restore" , "--dir" , t.ext , "--noOptionsRestore", "--w=1"); assert.eq( 1, db.capped.count() , "wrong number of docs restored to capped" ); assert(true !== db.capped.stats().capped, "restore options were not ignored"); @@ -67,7 +67,7 @@ db.dropDatabase(); assert.eq( 0, db.capped.count(), "capped not dropped"); assert.eq( 0, db.system.indexes.count(), "indexes not dropped" ); -t.runTool( "restore" , "-d", dbname2, "--dir" , dumppath + dbname, "--noOptionsRestore"); +t.runTool( "restore" , "-d", dbname2, "--dir" , dumppath + dbname, "--noOptionsRestore", "--w=1"); db = db.getSiblingDB(dbname2); @@ -99,7 +99,7 @@ db.dropDatabase(); assert.eq( 0, db.capped.count(), "capped not dropped"); assert.eq( 0, db.system.indexes.count(), "indexes not dropped" ); -t.runTool( "restore", "-d", dbname, "--drop", "--noOptionsRestore", dumppath + dbname ); +t.runTool( "restore", "-d", dbname, "--drop", "--noOptionsRestore", dumppath + dbname, "--w=1"); db = db.getSiblingDB(dbname); -- cgit v1.2.1