Skip to content

Commit ed6c734

Browse files
authored
ci: fix broken ci on windows and node v21 because of libuv bug (#2941)
1 parent 70f2871 commit ed6c734

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

test/node-test/debug.js

+3-9
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ const { tspl } = require('@matteo.collina/tspl')
88
// eslint-disable-next-line no-control-regex
99
const removeEscapeColorsRE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g
1010

11-
// see https://github.com/nodejs/node/issues/51766
12-
const skip = process.version === 'v21.6.2' && process.platform === 'win32'
13-
14-
test('debug#websocket', { skip }, async t => {
11+
test('debug#websocket', async t => {
1512
const assert = tspl(t, { plan: 8 })
1613
const child = spawn(
1714
process.execPath,
@@ -48,10 +45,9 @@ test('debug#websocket', { skip }, async t => {
4845
})
4946

5047
await assert.completed
51-
child.kill()
5248
})
5349

54-
test('debug#fetch', { skip }, async t => {
50+
test('debug#fetch', async t => {
5551
const assert = tspl(t, { plan: 7 })
5652
const child = spawn(
5753
process.execPath,
@@ -83,10 +79,9 @@ test('debug#fetch', { skip }, async t => {
8379
})
8480

8581
await assert.completed
86-
child.kill()
8782
})
8883

89-
test('debug#undici', { skip }, async t => {
84+
test('debug#undici', async t => {
9085
// Due to Node.js webpage redirect
9186
const assert = tspl(t, { plan: 7 })
9287
const child = spawn(
@@ -121,7 +116,6 @@ test('debug#undici', { skip }, async t => {
121116
})
122117

123118
await assert.completed
124-
child.kill()
125119
})
126120

127121
function extractLines (chunks) {

0 commit comments

Comments
 (0)