summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/replsets/step_down_during_draining.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/step_down_during_draining.js b/jstests/replsets/step_down_during_draining.js
index c4592bf2146..95a3b2946f8 100644
--- a/jstests/replsets/step_down_during_draining.js
+++ b/jstests/replsets/step_down_during_draining.js
@@ -58,7 +58,7 @@ load("jstests/replsets/rslib.js");
var numDocuments = 20;
var coll = primary.getDB("foo").foo;
assert.writeOK(coll.insert({x: 0}, {writeConcern: {w: 3}}));
- replSet.awaitReplication();
+ replSet.awaitReplication(ReplSetTest.kDefaultTimeoutMS, ReplSetTest.OpTimeType.LAST_DURABLE);
// Enable fail point to stop replication.
var secondaries = replSet.getSecondaries();