summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamy Lanka <samy.lanka@mongodb.com>2021-01-15 20:57:06 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-18 01:51:45 +0000
commit437ec5feca194a23c1228dda629b85f3a001cd8a (patch)
tree1e0483b6716e0b480d38831ca4f72f4e601d6d59
parent65d24ef61b0bc7549e687338a1e3b73b34f7f0f8 (diff)
downloadmongo-437ec5feca194a23c1228dda629b85f3a001cd8a.tar.gz
SERVER-53666 Make sure curSecondary is in SECONDARY state after restarting in rollback test fixture
-rw-r--r--jstests/replsets/libs/rollback_test.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/replsets/libs/rollback_test.js b/jstests/replsets/libs/rollback_test.js
index 476fae9acac..e382ecd1b8a 100644
--- a/jstests/replsets/libs/rollback_test.js
+++ b/jstests/replsets/libs/rollback_test.js
@@ -529,6 +529,8 @@ function RollbackTest(name = "RollbackTest", replSet) {
curSecondary = rst.getSecondary();
assert.neq(curPrimary, curSecondary);
+
+ waitForState(curSecondary, ReplSetTest.State.SECONDARY);
};
/**