From 5c03327ab12e2ff0e1d49ce8a4517623dd8cc7ba Mon Sep 17 00:00:00 2001 From: Rishab Joshi Date: Thu, 20 Jan 2022 20:54:36 +0000 Subject: SERVER-58693 Implement deletion of expired pre-images. --- jstests/libs/fail_point_util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jstests/libs') 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 })); }, -- cgit v1.2.1