Skip to content

Commit 87ce4af

Browse files
committed
fix test/client for node 20
Signed-off-by: Matteo Collina <[email protected]>
1 parent c2c8fd5 commit 87ce4af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const hasIPv6 = (() => {
1818
)
1919
})()
2020

21+
const isNode20OrHigher = Number(process.versions.node.split('.')[0]) >= 20
22+
2123
test('basic get', (t) => {
2224
t.plan(24)
2325

@@ -1896,7 +1898,7 @@ test('async iterator early return closes early', (t) => {
18961898
})
18971899
})
18981900

1899-
test('async iterator yield unsupported TypedArray', (t) => {
1901+
test('async iterator yield unsupported TypedArray', { skip: isNode20OrHigher }, (t) => {
19001902
t.plan(3)
19011903
const server = createServer((req, res) => {
19021904
req.on('end', () => {

0 commit comments

Comments
 (0)