diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2018-11-19 10:42:24 -0500 |
---|---|---|
committer | Suganthi Mani <suganthi.mani@mongodb.com> | 2019-01-12 15:05:00 -0500 |
commit | a722798ac1732b18239b808b5363be0a1b16d166 (patch) | |
tree | c7058660a2796772ddf73ef556c8c7111c198f6b | |
parent | 3e27146079106a97aaea9d84109c7d699de75540 (diff) | |
download | mongo-a722798ac1732b18239b808b5363be0a1b16d166.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.
(cherry picked from commit d9ac7e9ea34bb070239385225a3d002f9924a301)
-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(); |