diff options
author | Samy Lanka <samy.lanka@mongodb.com> | 2021-01-15 20:57:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-18 01:15:00 +0000 |
commit | 0659e83d7d6855c6b2739f2c959d456607300c6b (patch) | |
tree | d70b9c5aad05a75a76fbc51d73cf88d2028ae437 /jstests | |
parent | da451e4ac49dfac6a435f4e8906fb02a21418555 (diff) | |
download | mongo-0659e83d7d6855c6b2739f2c959d456607300c6b.tar.gz |
SERVER-53666 Make sure curSecondary is in SECONDARY state after restarting in rollback test fixture
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/libs/rollback_test.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/replsets/libs/rollback_test.js b/jstests/replsets/libs/rollback_test.js index a2c9980909e..d66af0bb706 100644 --- a/jstests/replsets/libs/rollback_test.js +++ b/jstests/replsets/libs/rollback_test.js @@ -558,6 +558,8 @@ function RollbackTest(name = "RollbackTest", replSet) { curSecondary = rst.getSecondary(); assert.neq(curPrimary, curSecondary); + + waitForState(curSecondary, ReplSetTest.State.SECONDARY); }; /** |