Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/library/heap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ test('should not leak dispatchers after closing page', async ({ context, server
expect(await queryObjectCount(clientClass.Response)).toBe(0);
});

test('should not leak workers', async ({ page }) => {
test('should not leak workers', async ({ page, browserName, channel }) => {
// Flaky on stable Firefox (Juggler): after worker.terminate(), the worker 'close'
// event is sometimes never delivered, so workerObj.waitForEvent('close') hangs and
// the test times out. Passes on Chromium, WebKit and moz-firefox-nightly (BiDi).
test.fixme(browserName === 'firefox' && !channel?.startsWith('moz-firefox'));
const before = await queryObjectCount(coreServer.Worker);
for (let i = 0; i < 5; ++i) {
const [workerHandle, workerObj] = await Promise.all([
Expand Down
Loading