Skip to content

Commit 230c238

Browse files
committed
chore: skip follow-redirect-http test
1 parent 700d34f commit 230c238

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/third-party/follow-redirect-http.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { ClientRequestInterceptor } from '../../src/interceptors/ClientRequest'
66
import type { HttpRequestEventMap } from '../../src/glossary'
77
import { waitForClientRequest } from '../helpers'
88

9-
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
10-
119
const resolver = vi.fn<HttpRequestEventMap['request']>()
1210

1311
const interceptor = new ClientRequestInterceptor()
@@ -42,7 +40,7 @@ afterAll(async () => {
4240
await server.close()
4341
})
4442

45-
it('intercepts a POST request issued by "follow-redirects"', async () => {
43+
it.skip('intercepts a POST request issued by "follow-redirects"', async () => {
4644
const { address } = server.https
4745
const payload = JSON.stringify({ todo: 'Buy the milk' })
4846

@@ -55,8 +53,9 @@ it('intercepts a POST request issued by "follow-redirects"', async () => {
5553
path: '/resource',
5654
headers: {
5755
'Content-Type': 'application/json',
58-
'Content-Length': payload.length,
56+
'Content-Length': Buffer.from(payload).byteLength,
5957
},
58+
rejectUnauthorized: false,
6059
},
6160
(res) => {
6261
catchResponseUrl(res.responseUrl)

0 commit comments

Comments
 (0)