diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-03-03 04:16:34 -0500 |
---|---|---|
committer | Ramon Fernandez <ramon@mongodb.com> | 2015-03-04 16:22:00 -0500 |
commit | 9c338fb99a783fc9f359e1fd94a09eeae104514f (patch) | |
tree | 1fc46f072062998907420357207fd51557c7c637 | |
parent | 52f14907a736383969a05df51808c93307255ef2 (diff) | |
download | mongo-9c338fb99a783fc9f359e1fd94a09eeae104514f.tar.gz |
SERVER-17442 increase tolerance for shutdown timeout in stepdown.js to fix windows build break
(cherry picked from commit 91806c6dd58640187180214c5f44f13421e9aa78)
-rw-r--r-- | jstests/replsets/stepdown.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/stepdown.js b/jstests/replsets/stepdown.js index 1c37186cbcf..474154ae6ef 100644 --- a/jstests/replsets/stepdown.js +++ b/jstests/replsets/stepdown.js @@ -163,7 +163,8 @@ print("\nrunning shutdown without force on master: "+master); // secondary is down) var now = new Date(); assert.commandFailed(master.getDB("admin").runCommand({shutdown : 1, timeoutSecs : 3})); -assert.gte((new Date()) - now, 3000); +// on windows, javascript and the server perceive time differently, to compensate here we use 2750ms +assert.gte((new Date()) - now, 2750); print("\nsend shutdown command"); |