From 53cfa64951f2dd6c7c6adb7cff3cc6b015f330e7 Mon Sep 17 00:00:00 2001 From: Lachlan Miller Date: Wed, 21 Dec 2022 12:04:13 +1000 Subject: [PATCH] try tweaking test --- packages/proxy/test/unit/http/util/prerequests.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/proxy/test/unit/http/util/prerequests.spec.ts b/packages/proxy/test/unit/http/util/prerequests.spec.ts index 51ed9ae6269c..60b90543273e 100644 --- a/packages/proxy/test/unit/http/util/prerequests.spec.ts +++ b/packages/proxy/test/unit/http/util/prerequests.spec.ts @@ -62,7 +62,7 @@ describe('http/util/prerequests', () => { // https://github.com/cypress-io/cypress/issues/17853 it('eventually discards pre-requests that don\'t match requests', (done) => { - preRequests = new PreRequests(10, 500) + preRequests = new PreRequests(10, 200) preRequests.addPending({ requestId: '1234', url: 'foo', method: 'GET' } as BrowserPreRequest) // preRequests garbage collects pre-requests that never matched up with an incoming request after around @@ -76,6 +76,6 @@ describe('http/util/prerequests', () => { } preRequests.get({ proxiedUrl: 'foo', method: 'GET' } as CypressIncomingRequest, () => {}, cb) - }, 1000) + }, 1200) }) })