summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2020-11-19 12:04:03 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-19 21:37:36 +0000
commit48fcb9bd106ca5e6a5a361a8a51992392ee8b335 (patch)
tree3026d8ea9af549f5fe38315813b23ea0f6e7cd74
parent9e258a74a0a3bfe725354cad653991aac7606e2b (diff)
downloadmongo-48fcb9bd106ca5e6a5a361a8a51992392ee8b335.tar.gz
SERVER-51784 initial_sync_operation_metrics.js should wait for the initial syncing node to transition to secondary
-rw-r--r--jstests/noPassthrough/initial_sync_operation_metrics.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/noPassthrough/initial_sync_operation_metrics.js b/jstests/noPassthrough/initial_sync_operation_metrics.js
index ba1c32f67c3..6bfb0a52cda 100644
--- a/jstests/noPassthrough/initial_sync_operation_metrics.js
+++ b/jstests/noPassthrough/initial_sync_operation_metrics.js
@@ -76,6 +76,7 @@ assertMetricsExist(metricsBefore[db2Name]);
const newNode = replSet.add({setParameter: setParams});
replSet.reInitiate();
+replSet.waitForState(newNode, ReplSetTest.State.SECONDARY);
replSet.awaitReplication();
// Ensure that the initial syncing node has not collected any metrics.