Skip to content

Commit 964e7bf

Browse files
committed
remove --unhandled-rejections=throw
1 parent 9ec6f1a commit 964e7bf

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

test/client-node-max-header-size.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ const command = 'node -e "require(\'.\').request(\'https://httpbin.org/get\')"'
77

88
test("respect Node.js' --max-http-header-size", async (t) => {
99
t.throws(
10-
// TODO: Drop the `--unhandled-rejections=throw` once we drop Node.js 14
11-
() => execSync(`${command} --max-http-header-size=1 --unhandled-rejections=throw`),
10+
() => execSync(`${command} --max-http-header-size=1`),
1211
/UND_ERR_HEADERS_OVERFLOW/,
1312
'max-http-header-size=1 should throw'
1413
)

test/fetch/client-node-max-header-size.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ const command = 'node -e "require(\'./undici-fetch.js\').fetch(\'https://httpbin
88

99
test("respect Node.js' --max-http-header-size", async () => {
1010
assert.throws(
11-
// TODO: Drop the `--unhandled-rejections=throw` once we drop Node.js 14
12-
() => execSync(`${command} --max-http-header-size=1 --unhandled-rejections=throw`),
11+
() => execSync(`${command} --max-http-header-size=1`),
1312
/UND_ERR_HEADERS_OVERFLOW/,
1413
'max-http-header-size=1 should throw'
1514
)

0 commit comments

Comments
 (0)