summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_libs/cluster.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/concurrency/fsm_libs/cluster.js')
-rw-r--r--jstests/concurrency/fsm_libs/cluster.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/jstests/concurrency/fsm_libs/cluster.js b/jstests/concurrency/fsm_libs/cluster.js
index 8c3f58d43bb..5cf6c7facff 100644
--- a/jstests/concurrency/fsm_libs/cluster.js
+++ b/jstests/concurrency/fsm_libs/cluster.js
@@ -579,14 +579,8 @@ var Cluster = function(options) {
phase +
', failed to find self in replication status: ' + tojson(replSetStatus));
- // Wait for all previous workload operations to complete, with "getLastError".
- res = primary.getDB('test').runCommand({
- getLastError: 1,
- w: options.replication.numNodes,
- wtimeout: 5 * 60 * 1000,
- wOpTime: primaryInfo.optime
- });
- assert.commandWorked(res, phase + ', error awaiting replication');
+ // Wait for all previous workload operations to complete.
+ rst.awaitReplication();
}
});
};