From: Yadd Date: Fri, 12 Apr 2024 10:05:59 +0000 (+0200) Subject: fix for node-proxy >= 2 X-Git-Tag: archive/raspbian/7.3.0+dfsg1+_cs24.12.11-1+rpi1~1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9cea7cd6bd77e1784b95a95b08296a4aea834433;p=node-undici.git fix for node-proxy >= 2 Forwarded: not-needed Last-Update: 2023-11-23 Gbp-Pq: Name fix-for-proxy-2.patch --- diff --git a/test/proxy-agent.js b/test/proxy-agent.js index e6b3df3..a45a568 100644 --- a/test/proxy-agent.js +++ b/test/proxy-agent.js @@ -10,7 +10,7 @@ const ProxyAgent = require('../lib/proxy-agent') const Pool = require('../lib/pool') const { createServer } = require('http') const https = require('https') -const proxy = require('proxy') +const proxy = require('proxy').createProxy test('should throw error when no uri is provided', (t) => { t.plan(2) diff --git a/test/proxy.js b/test/proxy.js index d6d8d42..6858247 100644 --- a/test/proxy.js +++ b/test/proxy.js @@ -3,7 +3,7 @@ const { test } = require('tap') const { Client, Pool } = require('..') const { createServer } = require('http') -const proxy = require('proxy') +const proxy = require('proxy').createProxy test('connect through proxy', async (t) => { t.plan(3)