Skip to content

Commit

Permalink
Increase timeouts in CI for e2e packets test
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Jan 19, 2024
1 parent a6bfe42 commit 8acd961
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/zui-player/tests/packets.spec.ts
Original file line number Diff line number Diff line change
@@ -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/);
});
Expand All @@ -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/);
});
Expand Down

0 comments on commit 8acd961

Please sign in to comment.