diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2018-11-19 10:42:24 -0500 |
---|---|---|
committer | Suganthi Mani <suganthi.mani@mongodb.com> | 2018-11-30 10:25:48 -0500 |
commit | d9ac7e9ea34bb070239385225a3d002f9924a301 (patch) | |
tree | 631b57f9fc632bb673e420337c5fb27a2978723e /jstests/replsets/initial_sync_oplog_hole.js | |
parent | 064535356bfbeb9afe310944df4344574c9a6e8d (diff) | |
download | mongo-d9ac7e9ea34bb070239385225a3d002f9924a301.tar.gz |
SERVER-38200 Fix jstests/replsets/initial_sync_oplog_hole.js to use rslib waitForState to prevent using stale heartbeat info in the test.
Diffstat (limited to 'jstests/replsets/initial_sync_oplog_hole.js')
-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(); |