Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Apr 8, 2023
1 parent fd37933 commit e76cc66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/issue-1903.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const { createServer } = require('http')
const { test } = require('tap')
const { request } = require('..')
const util = require('../lib/core/util')

function createPromise () {
const result = {}
Expand All @@ -12,7 +13,10 @@ function createPromise () {
return result
}

test('should parse content-disposition consistencely', async (t) => {
// TODO (fix): This test fails on node >= 19 due to a char check
// in storeHeader throwing 'Invalid character in header content ["content-disposition"]'.
// See, https://github.com/nodejs/node/issues/47479.
test('should parse content-disposition consistencely', { skip: util.nodeMajor >= 19 }, async (t) => {
t.plan(5)

// create promise to allow server spinup in parallel
Expand Down

0 comments on commit e76cc66

Please sign in to comment.