Skip to content

Commit a0c8c1b

Browse files
committed
skip more tests
1 parent 66535ea commit a0c8c1b

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

test/fetch/client-node-max-header-size.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
'use strict'
22

33
const { execSync } = require('node:child_process')
4-
const { test } = require('tap')
4+
const { test, skip } = require('tap')
5+
const { nodeMajor } = require('../../lib/core/util')
6+
7+
if (nodeMajor === 16) {
8+
skip('esbuild uses static blocks with --keep-names which node 16.8 does not have')
9+
process.exit()
10+
}
511

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

test/fetch/issue-1447.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
'use strict'
22

3-
const { test } = require('tap')
3+
const { test, skip } = require('tap')
4+
const { nodeMajor } = require('../../lib/core/util')
5+
6+
if (nodeMajor === 16) {
7+
skip('esbuild uses static blocks with --keep-names which node 16.8 does not have')
8+
process.exit()
9+
}
410

511
const undici = require('../..')
612
const { fetch: theoreticalGlobalFetch } = require('../../undici-fetch')

test/fetch/user-agent.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
'use strict'
22

3-
const { test } = require('tap')
3+
const { test, skip } = require('tap')
44
const events = require('events')
55
const http = require('http')
66
const undici = require('../../')
77
const nodeBuild = require('../../undici-fetch.js')
8+
const { nodeMajor } = require('../../lib/core/util')
9+
10+
if (nodeMajor === 16) {
11+
skip('esbuild uses static blocks with --keep-names which node 16.8 does not have')
12+
process.exit()
13+
}
814

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

0 commit comments

Comments
 (0)