summaryrefslogtreecommitdiff
path: root/jstests/replsets/libs/two_phase_drops.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/libs/two_phase_drops.js')
-rw-r--r--jstests/replsets/libs/two_phase_drops.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/jstests/replsets/libs/two_phase_drops.js b/jstests/replsets/libs/two_phase_drops.js
index bb772012fdb..5d638bcad88 100644
--- a/jstests/replsets/libs/two_phase_drops.js
+++ b/jstests/replsets/libs/two_phase_drops.js
@@ -16,7 +16,7 @@
*/
"use strict";
-load("jstests/libs/check_log.js"); // For 'checkLog'.
+load("jstests/libs/fail_point_util.js");
load("jstests/libs/fixture_helpers.js"); // For 'FixtureHelpers'.
load("jstests/aggregation/extras/utils.js"); // For 'arrayEq'.
@@ -60,9 +60,8 @@ class TwoPhaseDropCollectionTest {
* Pause oplog application on a specified node.
*/
pauseOplogApplication(node) {
- assert.commandWorked(node.adminCommand(
- {configureFailPoint: this.oplogApplicationFailpoint, mode: "alwaysOn"}));
- checkLog.contains(node, this.oplogApplicationFailpoint + " fail point enabled");
+ let failPoint = configureFailPoint(node, this.oplogApplicationFailpoint);
+ failPoint.wait();
}
/**