mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
test(core): Fix cleanup in test teardown script (no-changelog) (#8361)
This commit is contained in:
parent
d5455d7acc
commit
771d2fa341
|
@ -14,7 +14,6 @@ if (inE2ETests) {
|
|||
process.env.N8N_AI_ENABLED = 'true';
|
||||
} else if (inTest) {
|
||||
process.env.N8N_LOG_LEVEL = 'silent';
|
||||
process.env.N8N_ENCRYPTION_KEY = 'test_key';
|
||||
process.env.N8N_PUBLIC_API_DISABLED = 'true';
|
||||
process.env.SKIP_STATISTICS_EVENTS = 'true';
|
||||
} else {
|
||||
|
|
|
@ -2,6 +2,8 @@ import { tmpdir } from 'os';
|
|||
import { join } from 'path';
|
||||
import { mkdirSync, mkdtempSync, writeFileSync } from 'fs';
|
||||
|
||||
process.env.N8N_ENCRYPTION_KEY = 'test_key';
|
||||
|
||||
const baseDir = join(tmpdir(), 'n8n-tests/');
|
||||
mkdirSync(baseDir, { recursive: true });
|
||||
|
||||
|
|
Loading…
Reference in a new issue