diff options
Diffstat (limited to 'jstests/libs/write_concern_util.js')
-rw-r--r-- | jstests/libs/write_concern_util.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/libs/write_concern_util.js b/jstests/libs/write_concern_util.js index d2540d22a89..e4ab84361c4 100644 --- a/jstests/libs/write_concern_util.js +++ b/jstests/libs/write_concern_util.js @@ -19,7 +19,8 @@ function shardCollectionWithChunks(st, coll) { // Stops replication at a server. function stopServerReplication(conn) { - conn.getDB('admin').runCommand({configureFailPoint: 'rsSyncApplyStop', mode: 'alwaysOn'}); + assert.commandWorked( + conn.getDB('admin').runCommand({configureFailPoint: 'rsSyncApplyStop', mode: 'alwaysOn'})); } // Stops replication at all replicaset secondaries. @@ -35,7 +36,8 @@ function stopReplicationOnSecondariesOfAllShards(st) { // Restarts replication at a server. function restartServerReplication(conn) { - conn.getDB('admin').runCommand({configureFailPoint: 'rsSyncApplyStop', mode: 'off'}); + assert.commandWorked( + conn.getDB('admin').runCommand({configureFailPoint: 'rsSyncApplyStop', mode: 'off'})); } // Restarts replication at all nodes in a replicaset. |