@@ -62,6 +62,7 @@ describe('GlobalConfig', () => {
62
62
rejectUnauthorized : true ,
63
63
} ,
64
64
user : 'postgres' ,
65
+ idleTimeoutMs : 30_000 ,
65
66
} ,
66
67
sqlite : {
67
68
database : 'database.sqlite' ,
@@ -72,6 +73,7 @@ describe('GlobalConfig', () => {
72
73
tablePrefix : '' ,
73
74
type : 'sqlite' ,
74
75
isLegacySqlite : true ,
76
+ pingIntervalSeconds : 2 ,
75
77
} ,
76
78
credentials : {
77
79
defaultName : 'My credentials' ,
@@ -321,7 +323,9 @@ describe('GlobalConfig', () => {
321
323
process . env = {
322
324
DB_POSTGRESDB_HOST : 'some-host' ,
323
325
DB_POSTGRESDB_USER : 'n8n' ,
326
+ DB_POSTGRESDB_IDLE_CONNECTION_TIMEOUT : '10000' ,
324
327
DB_TABLE_PREFIX : 'test_' ,
328
+ DB_PING_INTERVAL_SECONDS : '2' ,
325
329
NODES_INCLUDE : '["n8n-nodes-base.hackerNews"]' ,
326
330
DB_LOGGING_MAX_EXECUTION_TIME : '0' ,
327
331
N8N_METRICS : 'TRUE' ,
@@ -337,10 +341,12 @@ describe('GlobalConfig', () => {
337
341
...defaultConfig . database . postgresdb ,
338
342
host : 'some-host' ,
339
343
user : 'n8n' ,
344
+ idleTimeoutMs : 10_000 ,
340
345
} ,
341
346
sqlite : defaultConfig . database . sqlite ,
342
347
tablePrefix : 'test_' ,
343
348
type : 'sqlite' ,
349
+ pingIntervalSeconds : 2 ,
344
350
} ,
345
351
endpoints : {
346
352
...defaultConfig . endpoints ,
0 commit comments