From 545d153612c703cf373d980ab046cd2c1240a2d7 Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Thu, 10 Oct 2024 08:43:31 -0400 Subject: [PATCH] more possibilities for how a ProxyAgent error renders --- test/server/lib/ProxyAgent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/server/lib/ProxyAgent.ts b/test/server/lib/ProxyAgent.ts index 04603824..6cb18b23 100644 --- a/test/server/lib/ProxyAgent.ts +++ b/test/server/lib/ProxyAgent.ts @@ -93,8 +93,8 @@ describe("ProxyAgent", function () { // We rely on "ProxyAgent error" message to detect issues with the proxy server. // Error message depends a little on node version. assertMatchArray(logMessages2, [ - /warn: ProxyAgent error.*((request.*failed)|(ECONNREFUSED))/, - /warn: ProxyAgent error.*((request.*failed)|(ECONNREFUSED))/, + /warn: ProxyAgent error.*((request.*failed)|(ECONNREFUSED)|(AggregateError))/, + /warn: ProxyAgent error.*((request.*failed)|(ECONNREFUSED)|(AggregateError))/, ]); }); });