From 1c5fb6059b8c606b260f32d770d27bbaa3e9e5e5 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Sat, 29 Apr 2023 00:23:25 -0700 Subject: [PATCH] Fix https-proxy-agent test on Node 20 --- packages/https-proxy-agent/test/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/https-proxy-agent/test/test.ts b/packages/https-proxy-agent/test/test.ts index d3b66749..08835174 100644 --- a/packages/https-proxy-agent/test/test.ts +++ b/packages/https-proxy-agent/test/test.ts @@ -263,7 +263,7 @@ describe('HttpsProxyAgent', () => { rejectUnauthorized: false, }); const body = await json(res); - assert.equal('localhost', body.host); + assert.equal(sslServerUrl.hostname, body.host); } ); });