diff --git a/src/test/e2e/dedupe-permissions.e2e.test.ts b/src/test/e2e/dedupe-permissions.e2e.test.ts index 20f26eba0a24..a02632f7ee6f 100644 --- a/src/test/e2e/dedupe-permissions.e2e.test.ts +++ b/src/test/e2e/dedupe-permissions.e2e.test.ts @@ -28,7 +28,7 @@ test('Dedupe permissions migration correctly dedupes permissions', async () => { await initSchema(config.db); - const e2e = { + const custom = { ...config.db, connectionTimeoutMillis: 2000, }; @@ -37,10 +37,12 @@ test('Dedupe permissions migration correctly dedupes permissions', async () => { process.argv = process.argv.filter((it) => !it.includes('--verbose')); const dbm = getInstance(true, { cwd: `${__dirname}/../../`, // relative to src/test/e2e - config: { e2e }, - env: 'e2e', + config: { custom }, + env: 'custom', }); + dbm.config.custom = custom; + // Run all migrations up to, and including, this one, the last one before the dedupe migration await dbm.up('20231121153304-add-permission-create-tag-type.js'); diff --git a/src/test/e2e/favor-permission-name-over-id.e2e.test.ts b/src/test/e2e/favor-permission-name-over-id.e2e.test.ts index b522c96fb7a0..f8c4198996bf 100644 --- a/src/test/e2e/favor-permission-name-over-id.e2e.test.ts +++ b/src/test/e2e/favor-permission-name-over-id.e2e.test.ts @@ -28,7 +28,7 @@ test('Favor permission name over id migration correctly assigns permissions by n await initSchema(config.db); - const e2e = { + const custom = { ...config.db, connectionTimeoutMillis: 2000, }; @@ -37,10 +37,12 @@ test('Favor permission name over id migration correctly assigns permissions by n process.argv = process.argv.filter((it) => !it.includes('--verbose')); const dbm = getInstance(true, { cwd: `${__dirname}/../../`, // relative to src/test/e2e - config: { e2e }, - env: 'e2e', + config: { custom }, + env: 'custom', }); + dbm.config.custom = custom; + // Run all migrations up to, and including, this one, the last one before the favor permission name over id migration await dbm.up('20231123100052-drop-last-seen-foreign-key.js');