more possibilities for how a ProxyAgent error renders

This commit is contained in:
Paul Fitzpatrick 2024-10-10 08:43:31 -04:00
parent ded37729d5
commit 545d153612
No known key found for this signature in database
GPG Key ID: 07F16BF3214888F6

View File

@ -93,8 +93,8 @@ describe("ProxyAgent", function () {
// We rely on "ProxyAgent error" message to detect issues with the proxy server. // We rely on "ProxyAgent error" message to detect issues with the proxy server.
// Error message depends a little on node version. // Error message depends a little on node version.
assertMatchArray(logMessages2, [ assertMatchArray(logMessages2, [
/warn: ProxyAgent error.*((request.*failed)|(ECONNREFUSED))/, /warn: ProxyAgent error.*((request.*failed)|(ECONNREFUSED)|(AggregateError))/,
/warn: ProxyAgent error.*((request.*failed)|(ECONNREFUSED))/, /warn: ProxyAgent error.*((request.*failed)|(ECONNREFUSED)|(AggregateError))/,
]); ]);
}); });
}); });