summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2021-01-14 12:29:57 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-29 23:37:38 +0000
commite5f0892d0d74eb4b90707a0fd5b19e3220a8344b (patch)
tree63fa311ac5d203458e5d0fdd3ccf5cae31d418b0 /jstests/replsets
parent9e2f8eb074db402f3d25264b7c0b299a95b81acc (diff)
downloadmongo-e5f0892d0d74eb4b90707a0fd5b19e3220a8344b.tar.gz
SERVER-51078 no need for checkForInterrupt in waitWhileFailPointEnabled
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/interrupted_batch_insert.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/interrupted_batch_insert.js b/jstests/replsets/interrupted_batch_insert.js
index 58e50e26825..f51cb135e9e 100644
--- a/jstests/replsets/interrupted_batch_insert.js
+++ b/jstests/replsets/interrupted_batch_insert.js
@@ -44,7 +44,8 @@ stopServerReplication(conns[2]);
// Allow the primary to insert the first 5 batches of documents. After that, the fail point
// activates, and the client thread hangs until the fail point gets turned off.
-let failPoint = configureFailPoint(primary.getDB("db"), "hangDuringBatchInsert", {}, {skip: 5});
+let failPoint = configureFailPoint(
+ primary.getDB("db"), "hangDuringBatchInsert", {shouldCheckForInterrupt: true}, {skip: 5});
// In a background thread, issue an insert command to the primary that will insert 10 batches of
// documents.