diff options
author | Rishab Joshi <rishab.joshi@mongodb.com> | 2022-01-20 20:54:36 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-15 00:27:46 +0000 |
commit | 5c03327ab12e2ff0e1d49ce8a4517623dd8cc7ba (patch) | |
tree | 998fbeb55847b412fa4615aff9ec03ec15f9d13f /jstests/libs | |
parent | 792eaed783453a5f840112919fc0adb628961d24 (diff) | |
download | mongo-5c03327ab12e2ff0e1d49ce8a4517623dd8cc7ba.tar.gz |
SERVER-58693 Implement deletion of expired pre-images.
Diffstat (limited to 'jstests/libs')
-rw-r--r-- | jstests/libs/fail_point_util.js | 4 |
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 })); }, |