diff options
author | Dan Pasette <dan@10mongodb.com> | 2014-03-06 19:33:56 -0500 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2014-03-07 10:11:32 -0500 |
commit | 0e63bed927440d1531e0a2e26cf5cb79d6b52138 (patch) | |
tree | b30c6ab9f705af6a6b9e0dd5687f02b44eae976b /jstests/replsets/maxSyncSourceLagSecs.js | |
parent | 18b7f9c5f43556ecde34883ee046bdde16f0cd1c (diff) | |
download | mongo-0e63bed927440d1531e0a2e26cf5cb79d6b52138.tar.gz |
SERVER-12901 fix flapping test
Diffstat (limited to 'jstests/replsets/maxSyncSourceLagSecs.js')
-rw-r--r-- | jstests/replsets/maxSyncSourceLagSecs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/maxSyncSourceLagSecs.js b/jstests/replsets/maxSyncSourceLagSecs.js index 748e1e281f3..d50f2126115 100644 --- a/jstests/replsets/maxSyncSourceLagSecs.js +++ b/jstests/replsets/maxSyncSourceLagSecs.js @@ -1,6 +1,6 @@ // Test that setting maxSyncSourceLagSecs causes the set to change sync target var replTest = new ReplSetTest({ nodes: 3, oplogSize: 5, - nodeOptions: {setParameter: "maxSyncSourceLagSecs=1"}}); + nodeOptions: {setParameter: "maxSyncSourceLagSecs=5"}}); replTest.startSet(); replTest.initiate(); @@ -19,7 +19,7 @@ assert.soon(function() { }, "sync target not changed to other slave"); printjson(replTest.status); -jsTestLog("Lock slave 1 and add some docs. Should force sync target for slave 2 to change to primary"); +jsTestLog("Lock slave 1 and add some docs. Force sync target for slave 2 to change to primary"); assert.commandWorked(slaves[0].getDB("admin").runCommand({fsync:1, lock: 1})); var docNum = 100; for (var i=0; i<docNum; i++) { |