fix(test): write after end in proxy test (#3039)

This commit is contained in:
Joel Einbinder 2020-07-20 13:31:24 -07:00 committed by GitHub
parent d1f937d651
commit 23f506b3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,9 @@ describe('HTTP Proxy', () => {
'Proxy-Authenticate': 'Basic realm="Access to internal site"'
});
res.end();
} else {
res.end(`<html><title>${auth}</title></html>`);
}
res.end(`<html><title>${auth}</title></html>`);
});
const browser = await browserType.launch({
...defaultBrowserOptions,