From ec912aeec8589cfff894008bacac759cbe09fd2c Mon Sep 17 00:00:00 2001 From: brecht stamper Date: Mon, 5 Aug 2024 14:19:26 +0200 Subject: [PATCH] increase timeout --- .../test/detection.test.ts | 73 +++++++++++-------- 1 file changed, 41 insertions(+), 32 deletions(-) diff --git a/plugins/default-browser-emulator/test/detection.test.ts b/plugins/default-browser-emulator/test/detection.test.ts index e72bd27b9..b508d3e51 100644 --- a/plugins/default-browser-emulator/test/detection.test.ts +++ b/plugins/default-browser-emulator/test/detection.test.ts @@ -1269,52 +1269,61 @@ it('should emulate in a blob shared worker', async () => { if (req.url === '/test.html') { res.end(` - - - - - Document - - - -`); + })(); + + + +`); } else if (req.url.includes('worker-result')) { const result = await Helpers.readableToBuffer(req); jsonResults.push(result.toString()); @@ -1346,7 +1355,7 @@ it('should emulate in a blob shared worker', async () => { resultWithUnmasked.push({ hardware: [...hardware], ua: [...ua] }); } expect(resultWithUnmasked).toHaveLength(0); -}); +}, 120e3); test('should not trigger stack for unhandled error', async () => { const agent = pool.createAgent({