summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorRishab Joshi <rishab.joshi@mongodb.com>2022-01-20 20:54:36 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-15 00:27:46 +0000
commit5c03327ab12e2ff0e1d49ce8a4517623dd8cc7ba (patch)
tree998fbeb55847b412fa4615aff9ec03ec15f9d13f /jstests/libs
parent792eaed783453a5f840112919fc0adb628961d24 (diff)
downloadmongo-5c03327ab12e2ff0e1d49ce8a4517623dd8cc7ba.tar.gz
SERVER-58693 Implement deletion of expired pre-images.
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/fail_point_util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/libs/fail_point_util.js b/jstests/libs/fail_point_util.js
index d8592a653fb..c01c1d593e0 100644
--- a/jstests/libs/fail_point_util.js
+++ b/jstests/libs/fail_point_util.js
@@ -23,13 +23,13 @@ configureFailPoint = function(conn, failPointName, data = {}, failPointMode = "a
{configureFailPoint: failPointName, mode: failPointMode, data: data}))
.count,
wait:
- function(maxTimeMS = kDefaultWaitForFailPointTimeout) {
+ function(maxTimeMS = kDefaultWaitForFailPointTimeout, timesEntered = 1) {
// Can only be called once because this function does not keep track of the
// number of times the fail point is entered between the time it returns
// and the next time it gets called.
assert.commandWorked(conn.adminCommand({
waitForFailPoint: failPointName,
- timesEntered: this.timesEntered + 1,
+ timesEntered: this.timesEntered + timesEntered,
maxTimeMS: maxTimeMS
}));
},