diff options
-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 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); }; /** |