From 3423133a137c79b64f3ff6ef9dbe433a441a47b0 Mon Sep 17 00:00:00 2001
From: mei23 <m@m544.net>
Date: Fri, 4 Jun 2021 20:58:16 +0900
Subject: [PATCH] Revert "Skip beforeShutdown in test"

This reverts commit 79c33ab53615e8fa4820d2abfc2494cba55c441c.
---
 src/misc/before-shutdown.ts | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/misc/before-shutdown.ts b/src/misc/before-shutdown.ts
index 33abf5fb4d..8639d42b04 100644
--- a/src/misc/before-shutdown.ts
+++ b/src/misc/before-shutdown.ts
@@ -56,8 +56,6 @@ 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) {