summaryrefslogtreecommitdiff
path: root/jstests/replsets/tenant_migration_recipient_aborts_merge_on_donor_failure.js
diff options
context:
space:
mode:
authorMatt Broadstone <mbroadst@mongodb.com>2023-01-09 20:19:37 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-09 21:45:19 +0000
commit9c2d2f716db7924c7fe12af379437f637efba744 (patch)
treee99092be92661f42ea1fca941043e9a7754a95a2 /jstests/replsets/tenant_migration_recipient_aborts_merge_on_donor_failure.js
parent112b333163e4014b24b098ea229c2a0d4184e1aa (diff)
downloadmongo-9c2d2f716db7924c7fe12af379437f637efba744.tar.gz
SERVER-72577 Convert tenant migrations tests to use es modules
Diffstat (limited to 'jstests/replsets/tenant_migration_recipient_aborts_merge_on_donor_failure.js')
-rw-r--r--jstests/replsets/tenant_migration_recipient_aborts_merge_on_donor_failure.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/jstests/replsets/tenant_migration_recipient_aborts_merge_on_donor_failure.js b/jstests/replsets/tenant_migration_recipient_aborts_merge_on_donor_failure.js
index c6c1bbbc591..f84056679a6 100644
--- a/jstests/replsets/tenant_migration_recipient_aborts_merge_on_donor_failure.js
+++ b/jstests/replsets/tenant_migration_recipient_aborts_merge_on_donor_failure.js
@@ -11,13 +11,11 @@
* ]
*/
-(function() {
-"use strict";
+import {TenantMigrationTest} from "jstests/replsets/libs/tenant_migration_test.js";
+import {isShardMergeEnabled} from "jstests/replsets/libs/tenant_migration_util.js";
load("jstests/libs/fail_point_util.js");
load("jstests/libs/uuid_util.js");
-load("jstests/replsets/libs/tenant_migration_test.js");
-load("jstests/replsets/libs/tenant_migration_util.js");
(() => {
const tenantMigrationTest =
@@ -25,7 +23,7 @@ load("jstests/replsets/libs/tenant_migration_util.js");
const recipientPrimary = tenantMigrationTest.getRecipientPrimary();
- if (!TenantMigrationUtil.isShardMergeEnabled(recipientPrimary.getDB("admin"))) {
+ if (!isShardMergeEnabled(recipientPrimary.getDB("admin"))) {
tenantMigrationTest.stop();
jsTestLog("Skipping Shard Merge-specific test");
return;
@@ -78,4 +76,3 @@ load("jstests/replsets/libs/tenant_migration_util.js");
tenantMigrationTest.stop();
})();
-})();