mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
Skip beforeShutdown in test
This commit is contained in:
parent
04d2415eb8
commit
79c33ab536
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user