mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
http,https: fix double ERR_PROXY_TUNNEL emission
Fixes: https://github.com/nodejs/node/issues/60697 PR-URL: https://github.com/nodejs/node/pull/60699 Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
This commit is contained in:
@@ -42,7 +42,7 @@ const { code, signal, stderr, stdout } = await runProxiedRequest({
|
||||
});
|
||||
|
||||
// The proxy client should get an error from failure in establishing the tunnel.
|
||||
assert.match(stderr, /ERR_PROXY_TUNNEL.*Failed to establish tunnel to .* HTTP\/1\.1 502 Bad Gateway/);
|
||||
assert.strictEqual(stderr.match(/ERR_PROXY_TUNNEL.*Failed to establish tunnel to .* HTTP\/1\.1 502 Bad Gateway/g).length, 1);
|
||||
assert.strictEqual(stdout.trim(), '');
|
||||
assert.strictEqual(code, 0);
|
||||
assert.strictEqual(signal, null);
|
||||
|
||||
Reference in New Issue
Block a user