From c7feb71993ec54a0937c1ec1d573ff1d71fecc09 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Sun, 3 Mar 2024 05:30:48 +0100 Subject: [PATCH] fix: tests dont need process.exit --- test/fetch/client-fetch.js | 4 +--- test/node-test/agent.js | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/test/fetch/client-fetch.js b/test/fetch/client-fetch.js index e0fcb97eca1..e258f9ab6d4 100644 --- a/test/fetch/client-fetch.js +++ b/test/fetch/client-fetch.js @@ -2,7 +2,7 @@ 'use strict' -const { test, after } = require('node:test') +const { test } = require('node:test') const assert = require('node:assert') const { tspl } = require('@matteo.collina/tspl') const { createServer } = require('node:http') @@ -700,5 +700,3 @@ test('Receiving non-Latin1 headers', async (t) => { assert.deepStrictEqual(cdHeaders, ContentDisposition) assert.deepStrictEqual(lengths, [30, 34, 94, 104, 90]) }) - -after(() => process.exit()) diff --git a/test/node-test/agent.js b/test/node-test/agent.js index c077fbab4e8..91dd99e9bf7 100644 --- a/test/node-test/agent.js +++ b/test/node-test/agent.js @@ -808,5 +808,3 @@ test('the dispatcher is truly global', t => { const undiciFresh = importFresh('../../index.js') assert.strictEqual(agent, undiciFresh.getGlobalDispatcher()) }) - -after(() => process.exit())