From d9ac7e9ea34bb070239385225a3d002f9924a301 Mon Sep 17 00:00:00 2001 From: Suganthi Mani Date: Mon, 19 Nov 2018 10:42:24 -0500 Subject: SERVER-38200 Fix jstests/replsets/initial_sync_oplog_hole.js to use rslib waitForState to prevent using stale heartbeat info in the test. --- jstests/replsets/initial_sync_oplog_hole.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jstests') 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(); -- cgit v1.2.1