diff --git a/lib/__tests__/parse.spec.ts b/lib/__tests__/parse.spec.ts index 48a0f5a0..5ee7a961 100644 --- a/lib/__tests__/parse.spec.ts +++ b/lib/__tests__/parse.spec.ts @@ -440,6 +440,7 @@ describe('Cookie.parse', () => { }, ])( 'Cookie.parse("$prefix $postfix") should not take significantly longer to run than Cookie.parse("$prefix$postfix")', + { retry: 3 }, ({ prefix, postfix, parseOptions = {} }) => { const shortVersion = `${prefix} ${postfix}` const startShortVersionParse = performance.now() @@ -454,7 +455,7 @@ describe('Cookie.parse', () => { const ratio = (endLongVersionParse - startLongVersionParse) / (endShortVersionParse - startShortVersionParse) - expect(ratio).toBeLessThan(250) // if broken this ratio goes 2000-4000x higher + expect(ratio).toBeLessThan(300) // if broken this ratio goes 2000-4000x higher }, ) })