diff options
author | Randolph Tan <randolph@10gen.com> | 2016-09-09 16:50:26 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2016-09-12 11:41:19 -0400 |
commit | 8cea6e9528e70a003a5cfe929ce03f3ca8be09d4 (patch) | |
tree | 4e92b0173f91841a033c1f53fdbfa8f5b562bc00 /jstests/libs/write_concern_util.js | |
parent | fd3c6c1f327117fb3d89f40113766a2f61613c5e (diff) | |
download | mongo-8cea6e9528e70a003a5cfe929ce03f3ca8be09d4.tar.gz |
SERVER-26047 Assert that fail point is configured successfully in write_concern_util.js
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. |