Skip to content

Commit

Permalink
test: update websocket wpt availability (#2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
panva authored Nov 15, 2023
1 parent ba4ca32 commit b37bbf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/wpt/start-websockets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ function isGlobalAvailable () {
return true
}

const [nodeMajor] = process.versions.node.split('.').map(v => Number(v))
const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))

// TODO: keep this up to date when backports to earlier majors happen
return nodeMajor >= 21
return nodeMajor >= 21 || (nodeMajor === 20 && nodeMinor >= 10)
}

if (process.env.CI) {
Expand Down

0 comments on commit b37bbf7

Please sign in to comment.