diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-10 14:03:28 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-10 14:03:28 +0900 |
| commit | d04014f875a03ae9b8f0f36338fd2446e7eb3150 (patch) | |
| tree | 447ab37a76486c9ec2ad5985e86c1f325b61f73c /src/misc | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.83.0 (diff) | |
| download | misskey-d04014f875a03ae9b8f0f36338fd2446e7eb3150.tar.gz misskey-d04014f875a03ae9b8f0f36338fd2446e7eb3150.tar.bz2 misskey-d04014f875a03ae9b8f0f36338fd2446e7eb3150.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/before-shutdown.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc/before-shutdown.ts b/src/misc/before-shutdown.ts index 8639d42b04..33abf5fb4d 100644 --- a/src/misc/before-shutdown.ts +++ b/src/misc/before-shutdown.ts @@ -56,6 +56,8 @@ const forceExitAfter = timeout => () => { * @param {string} signalOrEvent The exit signal or event name received on the process. */ async function shutdownHandler(signalOrEvent) { + if (process.env.NODE_ENV === 'test') return process.exit(0); + console.warn(`Shutting down: received [${signalOrEvent}] signal`); for (const listener of shutdownListeners) { |