From 8acd961981bd8f3a29be4c1b4b0ae24f06cd34ef Mon Sep 17 00:00:00 2001 From: Phil Rzewski Date: Fri, 19 Jan 2024 09:38:04 -0800 Subject: [PATCH] Increase timeouts in CI for e2e packets test --- packages/zui-player/tests/packets.spec.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/zui-player/tests/packets.spec.ts b/packages/zui-player/tests/packets.spec.ts index 29d692cd61..54201df493 100644 --- a/packages/zui-player/tests/packets.spec.ts +++ b/packages/zui-player/tests/packets.spec.ts @@ -1,8 +1,15 @@ import { play } from 'zui-player'; import { getPath } from 'zui-test-data'; +import { isCI } from '../helpers/env'; +// Timeouts are increased due to observed long pcap load times in CI. +// See play('packets.spec', (app, test) => { test('dropping a pcap does not pop up preview and load', async () => { + if (isCI()) { + test.setTimeout(120000); + app.page.setDefaultTimeout(120000); + } await app.dropFile(getPath('sample.pcap')); await app.attached(/Successfully loaded into sample.pcap/); }); @@ -17,6 +24,10 @@ play('packets.spec', (app, test) => { }); test('loading a bad pcap displays an error message', async () => { + if (isCI()) { + test.setTimeout(120000); + app.page.setDefaultTimeout(120000); + } await app.dropFile(getPath('bad.pcapng')); await app.attached(/Unable to generate full summary logs from PCAP/); });