diff options
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/initial_sync_oplog_hole.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync_oplog_hole.js b/jstests/replsets/initial_sync_oplog_hole.js index 9cf42570310..a6805102120 100644 --- a/jstests/replsets/initial_sync_oplog_hole.js +++ b/jstests/replsets/initial_sync_oplog_hole.js @@ -7,6 +7,7 @@ "use strict"; load("jstests/libs/check_log.js"); + load("jstests/replsets/rslib.js"); // Set up replica set. Disallow chaining so nodes always sync from primary. const testName = "initial_sync_oplog_hole"; @@ -80,7 +81,7 @@ }, primary.port); jsTestLog("Waiting for initial sync to complete."); - replTest.waitForState(secondary, ReplSetTest.State.SECONDARY); + waitForState(secondary, ReplSetTest.State.SECONDARY); jsTestLog("Joining hung write"); joinDisableFailPoint(); |