From: Yadd Date: Fri, 8 Nov 2024 04:35:57 +0000 (+0000) Subject: fix for node-proxy >= 2 X-Git-Tag: archive/raspbian/7.3.0+dfsg1+_cs24.12.11-1+rpi1~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5614b645d284aac96eb26e10299af6ee4cedad6b;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)