File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -882,7 +882,11 @@ const createTestSuite = ({
882882 } ) ;
883883 } ) ;
884884
885- if ( ! mainProxyAuth || ( mainProxyAuth . username && mainProxyAuth . password ) ) {
885+ // Skip on Node 14: HTTPS proxy -> HTTPS target with upstream proxy causes EPIPE errors.
886+ const isNode14 = process . versions . node . split ( '.' ) [ 0 ] === '14' ;
887+ const skipPuppeteerOnNode14 = isNode14 && mainProxyServerType === 'https' && useSsl && useUpstreamProxy && ! mainProxyAuth ;
888+
889+ if ( ( ! mainProxyAuth || ( mainProxyAuth . username && mainProxyAuth . password ) ) && ! skipPuppeteerOnNode14 ) {
886890 it ( 'handles GET request using puppeteer' , async ( ) => {
887891 const phantomUrl = `${ useSsl ? 'https' : 'http' } ://${ LOCALHOST_TEST } :${ targetServerPort } /hello-world` ;
888892 const response = await puppeteerGet ( phantomUrl , mainProxyUrl ) ;
You can’t perform that action at this time.
0 commit comments