Skip to content

Commit

Permalink
Combine "bad pcap" tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Jan 24, 2024
1 parent a5ee8af commit 6d8fc62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
12 changes: 0 additions & 12 deletions packages/zui-player/tests/bad-pcap.spec.ts

This file was deleted.

13 changes: 7 additions & 6 deletions packages/zui-player/tests/packets.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { isCI } from '../helpers/env';
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);
test.setTimeout(2 * 60_000);
app.page.setDefaultTimeout(2 * 60_000);
}
await app.dropFile(getPath('sample.pcap'));
await app.attached(/Successfully loaded into sample.pcap/);
Expand All @@ -23,12 +23,13 @@ play('packets.spec', (app, test) => {
await app.attached(/Packets extracted. Opening.../);
});

test('loading a bad pcap displays an error message', async () => {
test('loading a bad (Wireshark-unreadable) pcap displays an error message', async () => {
if (isCI()) {
test.setTimeout(120000);
app.page.setDefaultTimeout(120000);
test.setTimeout(2 * 60_000);
app.page.setDefaultTimeout(2 * 60_000);
}
await app.dropFile(getPath('bad.pcapng'));
await app.attached(/Unable to generate full summary logs from PCAP/);
await app.attached(/with 1 error/);
});

});
Binary file removed packages/zui-test-data/data/vanspy.pcapng
Binary file not shown.

0 comments on commit 6d8fc62

Please sign in to comment.