diff --git a/test/fetch/cookies.js b/test/fetch/cookies.js index 43e5f927ef6..7ac6ca835db 100644 --- a/test/fetch/cookies.js +++ b/test/fetch/cookies.js @@ -8,10 +8,6 @@ const { Client, fetch, Headers } = require('../..') const pem = require('@metcoder95/https-pem') const { createSecureServer } = require('node:http2') -const isMacOSNode20CI = process.platform === 'darwin' && - Number(process.versions.node.split('.')[0]) === 20 && - process.env.CI - describe('cookies', () => { let server @@ -32,9 +28,7 @@ describe('cookies', () => { return once(server, 'close') }) - test('Can receive set-cookie headers from a server using fetch - issue #1262', { - skip: isMacOSNode20CI - }, async (t) => { + test('Can receive set-cookie headers from a server using fetch - issue #1262', async (t) => { const query = qsStringify({ 'set-cookie': 'name=value; Domain=example.com' }) @@ -65,9 +59,7 @@ describe('cookies', () => { } }) - test('Cookie header is delimited with a semicolon rather than a comma - issue #1905', { - skip: isMacOSNode20CI - }, async (t) => { + test('Cookie header is delimited with a semicolon rather than a comma - issue #1905', async (t) => { const response = await fetch(`http://localhost:${server.address().port}`, { headers: [ ['cookie', 'FOO=lorem-ipsum-dolor-sit-amet'], diff --git a/test/fetch/issue-4105.js b/test/fetch/issue-4105.js index 361cf4c7534..714ebc49f53 100644 --- a/test/fetch/issue-4105.js +++ b/test/fetch/issue-4105.js @@ -5,10 +5,9 @@ const { createServer } = require('node:http') const { test } = require('node:test') const { fetch } = require('../..') const { PerformanceObserver } = require('node:perf_hooks') -const isAtLeastv22 = process.versions.node.split('.').map(Number)[0] >= 22 // https://github.com/nodejs/undici/issues/4105 -test('markResourceTiming responseStatus is set', { skip: !isAtLeastv22 }, async (t) => { +test('markResourceTiming responseStatus is set', async (t) => { t.plan(1) const promise = Promise.withResolvers()