Revert "Skip beforeShutdown in test"

This reverts commit 79c33ab536.
This commit is contained in:
mei23 2021-06-04 20:58:16 +09:00
parent 8a9f736cde
commit 3423133a13
No known key found for this signature in database
GPG Key ID: DD8628500D3E4B23
1 changed files with 0 additions and 2 deletions

View File

@ -56,8 +56,6 @@ const forceExitAfter = timeout => () => {
* @param {string} signalOrEvent The exit signal or event name received on the process. * @param {string} signalOrEvent The exit signal or event name received on the process.
*/ */
async function shutdownHandler(signalOrEvent) { async function shutdownHandler(signalOrEvent) {
if (process.env.NODE_ENV === 'test') return process.exit(0);
console.warn(`Shutting down: received [${signalOrEvent}] signal`); console.warn(`Shutting down: received [${signalOrEvent}] signal`);
for (const listener of shutdownListeners) { for (const listener of shutdownListeners) {