summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Chan <jason.chan@mongodb.com>2019-10-11 21:31:45 +0000
committerevergreen <evergreen@mongodb.com>2019-10-11 21:31:45 +0000
commit87a606d9d6075e0484f4e40047156b4b4916380c (patch)
tree0bf55fa2f57db2305fddb56025f016c0f29b75f9
parent4e1b61eb63e03031c14921d8cfde817f0a49000d (diff)
downloadmongo-87a606d9d6075e0484f4e40047156b4b4916380c.tar.gz
SERVER-43694 Change waitForState to awaitSecondaryNodes in initial_sync_write_conflict.js
(cherry picked from commit c0da48bb14fe1329e375265be0f731baa9f07577)
-rw-r--r--jstests/replsets/initial_sync_write_conflict.js2
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