Skip to content

Commit 890f8cc

Browse files
jkyberneeesCopilot
andauthored
Update test/cluster/fixtures/worker.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5f548c9 commit 890f8cc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/cluster/fixtures/worker.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
// Exits on SIGTERM, otherwise stays alive indefinitely
33
process.on('SIGTERM', () => process.exit(0))
44

5-
// Keep alive
6-
setInterval(() => {}, 1 << 30)
5+
// Keep alive for a very long time (about 1 billion ms ~ 11.5 days)
6+
const KEEP_ALIVE_INTERVAL = 1 << 30;
7+
setInterval(() => {}, KEEP_ALIVE_INTERVAL)

0 commit comments

Comments
 (0)