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())