Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skip failing test in node >= v19.8 #2034

Merged
merged 1 commit into from
Mar 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/fetch/client-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const { ReadableStream } = require('stream/web')
const { Blob } = require('buffer')
const { fetch, Response, Request, FormData, File } = require('../..')
const { Client, setGlobalDispatcher, Agent } = require('../..')
const { nodeMajor, nodeMinor } = require('../../lib/core/util')
const nodeFetch = require('../../index-fetch')
const { once } = require('events')
const { gzipSync } = require('zlib')
Expand Down Expand Up @@ -199,7 +200,9 @@ test('multipart formdata not base64', async (t) => {
t.equal(text, 'example\ntext file')
})

test('multipart formdata base64', (t) => {
// TODO(@KhafraDev): re-enable this test once the issue is fixed
// See https://github.com/nodejs/node/issues/47301
test('multipart formdata base64', { skip: nodeMajor >= 19 && nodeMinor >= 8 }, (t) => {
t.plan(1)

// Example form data with base64 encoding
Expand Down