Skip to content

Commit f60889a

Browse files
Fix lint
1 parent 890b42c commit f60889a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/@n8n/config/test/config.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ describe('GlobalConfig', () => {
6262
rejectUnauthorized: true,
6363
},
6464
user: 'postgres',
65+
idleTimeoutMs: 30_000,
6566
},
6667
sqlite: {
6768
database: 'database.sqlite',
@@ -72,6 +73,7 @@ describe('GlobalConfig', () => {
7273
tablePrefix: '',
7374
type: 'sqlite',
7475
isLegacySqlite: true,
76+
pingIntervalSeconds: 2,
7577
},
7678
credentials: {
7779
defaultName: 'My credentials',
@@ -321,7 +323,9 @@ describe('GlobalConfig', () => {
321323
process.env = {
322324
DB_POSTGRESDB_HOST: 'some-host',
323325
DB_POSTGRESDB_USER: 'n8n',
326+
DB_POSTGRESDB_IDLE_CONNECTION_TIMEOUT: '10000',
324327
DB_TABLE_PREFIX: 'test_',
328+
DB_PING_INTERVAL_SECONDS: '2',
325329
NODES_INCLUDE: '["n8n-nodes-base.hackerNews"]',
326330
DB_LOGGING_MAX_EXECUTION_TIME: '0',
327331
N8N_METRICS: 'TRUE',
@@ -337,10 +341,12 @@ describe('GlobalConfig', () => {
337341
...defaultConfig.database.postgresdb,
338342
host: 'some-host',
339343
user: 'n8n',
344+
idleTimeoutMs: 10_000,
340345
},
341346
sqlite: defaultConfig.database.sqlite,
342347
tablePrefix: 'test_',
343348
type: 'sqlite',
349+
pingIntervalSeconds: 2,
344350
},
345351
endpoints: {
346352
...defaultConfig.endpoints,

0 commit comments

Comments
 (0)