diff options
Diffstat (limited to 'jstests/replsets/reconfig.js')
-rw-r--r-- | jstests/replsets/reconfig.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/replsets/reconfig.js b/jstests/replsets/reconfig.js index ab9479cdb01..9260b91ce4f 100644 --- a/jstests/replsets/reconfig.js +++ b/jstests/replsets/reconfig.js @@ -5,6 +5,8 @@ (function() { "use strict"; +load("jstests/replsets/rslib.js"); + // Skip db hash check because secondary is left with a different config. TestData.skipCheckDBHashes = true; @@ -33,6 +35,10 @@ const lastOp = primaryOplog.find(expectedNoOp).sort({'$natural': -1}).limit(1).t assert(lastOp.length > 0); replTest.awaitReplication(); +// Make sure that all nodes have installed the config before moving on. +replTest.waitForConfigReplication(primary, nodes); +assert.soonNoExcept(() => isConfigCommitted(primary)); + jsTestLog("Invalid reconfig"); config.version++; var badMember = {_id: numNodes, host: "localhost:12345", priority: "High"}; |