From 87a606d9d6075e0484f4e40047156b4b4916380c Mon Sep 17 00:00:00 2001 From: Jason Chan Date: Fri, 11 Oct 2019 21:31:45 +0000 Subject: SERVER-43694 Change waitForState to awaitSecondaryNodes in initial_sync_write_conflict.js (cherry picked from commit c0da48bb14fe1329e375265be0f731baa9f07577) --- jstests/replsets/initial_sync_write_conflict.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jstests/replsets/initial_sync_write_conflict.js b/jstests/replsets/initial_sync_write_conflict.js index 20fc4fea93f..1571c318d45 100644 --- a/jstests/replsets/initial_sync_write_conflict.js +++ b/jstests/replsets/initial_sync_write_conflict.js @@ -26,7 +26,7 @@ secondary = replSet.start(secondary, { // Wait for everything to be synced. jsTest.log("Waiting for initial sync to succeed"); -replSet.waitForState(secondary, ReplSetTest.State.SECONDARY); +replSet.awaitSecondaryNodes(); // If the index table contains any entries pointing to invalid document(RecordID), then // validateCollections called during replica stopSet will capture the index corruption and throw -- cgit v1.2.1