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.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/jstests/concurrency/fsm_libs/cluster.js b/jstests/concurrency/fsm_libs/cluster.js
index f3e2429f898..609211d7894 100644
--- a/jstests/concurrency/fsm_libs/cluster.js
+++ b/jstests/concurrency/fsm_libs/cluster.js
@@ -223,11 +223,11 @@ var Cluster = function(options) {
conn = st.s; // mongos
- this.teardown = function teardown() {
+ this.teardown = function teardown(opts) {
options.teardownFunctions.mongod.forEach(this.executeOnMongodNodes);
options.teardownFunctions.mongos.forEach(this.executeOnMongosNodes);
- st.stop();
+ st.stop(opts);
};
// Save all mongos and mongod connections
@@ -273,10 +273,9 @@ var Cluster = function(options) {
conn = rst.getPrimary();
replSets = [rst];
- this.teardown = function teardown() {
+ this.teardown = function teardown(opts) {
options.teardownFunctions.mongod.forEach(this.executeOnMongodNodes);
-
- rst.stopSet();
+ rst.stopSet(undefined, undefined, opts);
};
this._addReplicaSetConns(rst);