Skip to content

Commit

Permalink
skip more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Oct 25, 2023
1 parent 66535ea commit a0c8c1b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion test/fetch/client-node-max-header-size.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
'use strict'

const { execSync } = require('node:child_process')
const { test } = require('tap')
const { test, skip } = require('tap')
const { nodeMajor } = require('../../lib/core/util')

if (nodeMajor === 16) {
skip('esbuild uses static blocks with --keep-names which node 16.8 does not have')
process.exit()
}

const command = 'node -e "require(\'./undici-fetch.js\').fetch(\'https://httpbin.org/get\')"'

Expand Down
8 changes: 7 additions & 1 deletion test/fetch/issue-1447.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
'use strict'

const { test } = require('tap')
const { test, skip } = require('tap')
const { nodeMajor } = require('../../lib/core/util')

if (nodeMajor === 16) {
skip('esbuild uses static blocks with --keep-names which node 16.8 does not have')
process.exit()
}

const undici = require('../..')
const { fetch: theoreticalGlobalFetch } = require('../../undici-fetch')
Expand Down
8 changes: 7 additions & 1 deletion test/fetch/user-agent.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
'use strict'

const { test } = require('tap')
const { test, skip } = require('tap')
const events = require('events')
const http = require('http')
const undici = require('../../')
const nodeBuild = require('../../undici-fetch.js')
const { nodeMajor } = require('../../lib/core/util')

if (nodeMajor === 16) {
skip('esbuild uses static blocks with --keep-names which node 16.8 does not have')
process.exit()
}

test('user-agent defaults correctly', async (t) => {
const server = http.createServer((req, res) => {
Expand Down

0 comments on commit a0c8c1b

Please sign in to comment.