summaryrefslogtreecommitdiff
path: root/jstests/tool
diff options
context:
space:
mode:
authormike o'brien <mpobrien005@gmail.com>2014-10-17 08:57:47 -0400
committerBenety Goh <benety@mongodb.com>2014-10-17 10:24:54 -0400
commit9dac9ae4ae4e1d12e88d9ffacbeb5384307b1d2e (patch)
tree8421c3ce1ee2f24ffcba18c500541d75da62b684 /jstests/tool
parentc3e58867a942565309cae3c04c642437d36edb2c (diff)
downloadmongo-9dac9ae4ae4e1d12e88d9ffacbeb5384307b1d2e.tar.gz
SERVER-15703 use w=1 for dumprestore test
Closes #830 Signed-off-by: Benety Goh <benety@mongodb.com>
Diffstat (limited to 'jstests/tool')
-rw-r--r--jstests/tool/dumprestoreWithNoOptions.js6
1 files changed, 3 insertions, 3 deletions
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);