Skip to content

Commit

Permalink
fix: tests dont need process.exit (#2909)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Mar 3, 2024
1 parent fc4e766 commit 1dbb0aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions test/fetch/client-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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())
2 changes: 0 additions & 2 deletions test/node-test/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -808,5 +808,3 @@ test('the dispatcher is truly global', t => {
const undiciFresh = importFresh('../../index.js')
assert.strictEqual(agent, undiciFresh.getGlobalDispatcher())
})

after(() => process.exit())

0 comments on commit 1dbb0aa

Please sign in to comment.