Skip to content

Commit

Permalink
ci: fix broken ci on windows and node v21 because of libuv bug (#2941)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Mar 10, 2024
1 parent 70f2871 commit ed6c734
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test/node-test/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ const { tspl } = require('@matteo.collina/tspl')
// eslint-disable-next-line no-control-regex
const removeEscapeColorsRE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g

// see https://github.com/nodejs/node/issues/51766
const skip = process.version === 'v21.6.2' && process.platform === 'win32'

test('debug#websocket', { skip }, async t => {
test('debug#websocket', async t => {
const assert = tspl(t, { plan: 8 })
const child = spawn(
process.execPath,
Expand Down Expand Up @@ -48,10 +45,9 @@ test('debug#websocket', { skip }, async t => {
})

await assert.completed
child.kill()
})

test('debug#fetch', { skip }, async t => {
test('debug#fetch', async t => {
const assert = tspl(t, { plan: 7 })
const child = spawn(
process.execPath,
Expand Down Expand Up @@ -83,10 +79,9 @@ test('debug#fetch', { skip }, async t => {
})

await assert.completed
child.kill()
})

test('debug#undici', { skip }, async t => {
test('debug#undici', async t => {
// Due to Node.js webpage redirect
const assert = tspl(t, { plan: 7 })
const child = spawn(
Expand Down Expand Up @@ -121,7 +116,6 @@ test('debug#undici', { skip }, async t => {
})

await assert.completed
child.kill()
})

function extractLines (chunks) {
Expand Down

0 comments on commit ed6c734

Please sign in to comment.