Skip to content

Commit 1dbb0aa

Browse files
authored
fix: tests dont need process.exit (#2909)
1 parent fc4e766 commit 1dbb0aa

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

test/fetch/client-fetch.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
'use strict'
44

5-
const { test, after } = require('node:test')
5+
const { test } = require('node:test')
66
const assert = require('node:assert')
77
const { tspl } = require('@matteo.collina/tspl')
88
const { createServer } = require('node:http')
@@ -700,5 +700,3 @@ test('Receiving non-Latin1 headers', async (t) => {
700700
assert.deepStrictEqual(cdHeaders, ContentDisposition)
701701
assert.deepStrictEqual(lengths, [30, 34, 94, 104, 90])
702702
})
703-
704-
after(() => process.exit())

test/node-test/agent.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,5 +808,3 @@ test('the dispatcher is truly global', t => {
808808
const undiciFresh = importFresh('../../index.js')
809809
assert.strictEqual(agent, undiciFresh.getGlobalDispatcher())
810810
})
811-
812-
after(() => process.exit())

0 commit comments

Comments
 (0)