summaryrefslogtreecommitdiff
path: root/jstests/libs/write_concern_util.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2016-09-09 16:50:26 -0400
committerRandolph Tan <randolph@10gen.com>2016-09-12 11:41:19 -0400
commit8cea6e9528e70a003a5cfe929ce03f3ca8be09d4 (patch)
tree4e92b0173f91841a033c1f53fdbfa8f5b562bc00 /jstests/libs/write_concern_util.js
parentfd3c6c1f327117fb3d89f40113766a2f61613c5e (diff)
downloadmongo-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.js6
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.