diff --git a/packages/network/test/integration/connect_spec.ts b/packages/network/test/integration/connect_spec.ts index a9a2d9f7cd6e..6b026474dcc5 100644 --- a/packages/network/test/integration/connect_spec.ts +++ b/packages/network/test/integration/connect_spec.ts @@ -12,6 +12,7 @@ chai.use(sinonChai) describe('lib/connect', function () { context('.getAddress', function () { it('resolves localhost on 127.0.0.1 immediately', function () { + // TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23155 this.retries(15) this.timeout(50) diff --git a/packages/server/lib/browsers/webkit.ts b/packages/server/lib/browsers/webkit.ts index 3e36d3f32293..493cd6dc9b1d 100644 --- a/packages/server/lib/browsers/webkit.ts +++ b/packages/server/lib/browsers/webkit.ts @@ -136,7 +136,7 @@ export async function open (browser: Browser, url: string, options: BrowserLaunc */ private suppressUnhandledEconnreset () { unhandledExceptions.handle((err: NodeJS.ErrnoException) => { - return err.code !== 'ECONNRESET' + return err.code === 'ECONNRESET' }) // restore normal exception handling behavior