diff options
author | Benety Goh <benety@mongodb.com> | 2017-01-23 14:57:19 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-01-23 19:51:46 -0500 |
commit | 9c80e72ab5db66c25aa32b602b8a6d56ab34398d (patch) | |
tree | 0c3d6b34aba31a5c5aeb0cf7ea558e175defc51b /jstests/gle | |
parent | c169d7bfd38abb845dfa5369a43781742d957d72 (diff) | |
download | mongo-9c80e72ab5db66c25aa32b602b8a6d56ab34398d.tar.gz |
SERVER-27791 increased writeConcern wtimeout in gle/block2.js and gle/get_last_error.js from 30 seconds to 5 minutes
Diffstat (limited to 'jstests/gle')
-rw-r--r-- | jstests/gle/block2.js | 2 | ||||
-rw-r--r-- | jstests/gle/get_last_error.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/jstests/gle/block2.js b/jstests/gle/block2.js index 2d185ca0426..ee2ad06c5e5 100644 --- a/jstests/gle/block2.js +++ b/jstests/gle/block2.js @@ -47,7 +47,7 @@ if (m.writeMode() == 'commands') { s = rt.start(false); setup(); - assert(worked(2, 30000), "E"); + assert(worked(2, 5 * 60 * 1000), "E"); } rt.stop(); diff --git a/jstests/gle/get_last_error.js b/jstests/gle/get_last_error.js index 933103bbc1e..d3542520c27 100644 --- a/jstests/gle/get_last_error.js +++ b/jstests/gle/get_last_error.js @@ -9,7 +9,7 @@ var master = replTest.getPrimary(); var mdb = master.getDB("test"); // synchronize replication -assert.writeOK(mdb.foo.insert({_id: "1"}, {writeConcern: {w: 3, wtimeout: 30000}})); +assert.writeOK(mdb.foo.insert({_id: "1"}, {writeConcern: {w: 3, wtimeout: 5 * 60 * 1000}})); var gle = master.getDB("test").runCommand({getLastError: 1, j: true}); print('Trying j=true'); @@ -51,7 +51,7 @@ replTest.stop(2); master = replTest.getPrimary(); mdb = master.getDB("test"); // do w:2 write so secondary is caught up before calling {gle w:3}. -assert.writeOK(mdb.foo.insert({_id: "3"}, {writeConcern: {w: 2, wtimeout: 30000}})); +assert.writeOK(mdb.foo.insert({_id: "3"}, {writeConcern: {w: 2, wtimeout: 5 * 60 * 1000}})); gle = mdb.getLastErrorObj(3, 1000); print('Trying w=3 with 2 nodes up, 1000ms timeout.'); printjson(gle); |