mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05: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:
1 parent
d908c83330
commit
a731463a60
6 files changed
+7
-7
No files matched your search
@@ -43,7 +43,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 404 Not Found/);
|
||||
assert.strictEqual(stderr.match(/ERR_PROXY_TUNNEL.*Failed to establish tunnel to .* HTTP\/1\.1 404 Not Found/g).length, 1);
|
||||
assert.strictEqual(stdout.trim(), '');
|
||||
assert.strictEqual(code, 0);
|
||||
assert.strictEqual(signal, null);
|
||||
|
||||
Reference in new issue
Block a user