From 285f6dea0758ae28274615ac2d155c4b43929579 Mon Sep 17 00:00:00 2001 From: Kamran Khan Date: Thu, 17 Dec 2015 12:50:14 -0500 Subject: SERVER-21923 Propagate ReplSetTest.awaitSecondaryNodes timeout values Previously, the supplied timeout would not be propagated to the getPrimary call, which could result in shorter timeouts for awaitSecondaryNodes and initiate calls. (cherry picked from commit c0e329b959a34e5c80bcbd3f4d77764cc1aa920d) --- src/mongo/shell/replsettest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js index fbf2abb7d90..6926d8d7e4f 100644 --- a/src/mongo/shell/replsettest.js +++ b/src/mongo/shell/replsettest.js @@ -389,7 +389,7 @@ var ReplSetTest = function(opts) { assert.soon(function() { // Reload who the current slaves are - self.getPrimary(); + self.getPrimary(timeout); var slaves = self.liveNodes.slaves; var len = slaves.length; -- cgit v1.2.1