From f74033f57ba088ddf5c676476e2a348273123794 Mon Sep 17 00:00:00 2001 From: GedasFX Date: Sun, 3 May 2026 14:21:43 +0300 Subject: [PATCH] tests: remove process.exit --- api/src/util/test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/util/test.js b/api/src/util/test.js index 88e82e31..3713d3dd 100644 --- a/api/src/util/test.js +++ b/api/src/util/test.js @@ -79,7 +79,8 @@ env.streamLifespan = 10000; env.apiURL = 'http://x/'; randomizeCiphers(); -await setupTunnelHandler(); +const tunnelServer = await setupTunnelHandler(); +tunnelServer.unref(); const action = process.argv[2]; switch (action) { @@ -137,5 +138,3 @@ switch (action) { if (fails) console.log(`${Bright(service)} fails: ${fails}`); } } - -process.exit(process.exitCode ?? 0);