diff options
-rw-r--r-- | jstests/replsets/initial_sync_write_conflict.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |