summaryrefslogtreecommitdiff
path: root/jstests/replsets/libs/tenant_migration_recipient_sync_source.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/libs/tenant_migration_recipient_sync_source.js')
-rw-r--r--jstests/replsets/libs/tenant_migration_recipient_sync_source.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/jstests/replsets/libs/tenant_migration_recipient_sync_source.js b/jstests/replsets/libs/tenant_migration_recipient_sync_source.js
index 92e80d462b8..a052b0f5268 100644
--- a/jstests/replsets/libs/tenant_migration_recipient_sync_source.js
+++ b/jstests/replsets/libs/tenant_migration_recipient_sync_source.js
@@ -2,12 +2,11 @@
* Helper functions for running tests related to sync source selection during a tenant migration.
*/
-import {TenantMigrationTest} from "jstests/replsets/libs/tenant_migration_test.js";
-import {makeX509OptionsForTest} from "jstests/replsets/libs/tenant_migration_util.js";
-
load("jstests/libs/fail_point_util.js");
load("jstests/libs/uuid_util.js");
load("jstests/libs/write_concern_util.js");
+load("jstests/replsets/libs/tenant_migration_test.js");
+load("jstests/replsets/libs/tenant_migration_util.js");
load('jstests/replsets/rslib.js');
/**
@@ -19,12 +18,12 @@ load('jstests/replsets/rslib.js');
* 'startApplyingDonorOpTime' stored in the recipient state document. As a result, neither nodes are
* eligible sync sources for the migration.
*/
-export function setUpMigrationSyncSourceTest() {
+const setUpMigrationSyncSourceTest = function() {
const donorRst = new ReplSetTest({
name: `${jsTestName()}_donor`,
nodes: 3,
settings: {chainingAllowed: false},
- nodeOptions: Object.assign(makeX509OptionsForTest().donor, {
+ nodeOptions: Object.assign(TenantMigrationUtil.makeX509OptionsForTest().donor, {
setParameter: {
tenantMigrationExcludeDonorHostTimeoutMS: 30 * 1000,
// Allow non-timestamped reads on donor after migration completes for testing.
@@ -154,4 +153,4 @@ export function setUpMigrationSyncSourceTest() {
delayedSecondary,
hangAfterCreatingConnections: hangNewRecipientPrimaryAfterCreatingConnections
};
-}
+};