Skip to content
Merged
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
10 changes: 9 additions & 1 deletion test/parallel/test-common-wpt-backends.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ async function collect(backend, throws) {
},
});

await handle.finished;
const watchdog = setTimeout(
common.mustNotCall(`The ${backend} WPT backend did not finish`),
common.platformTimeout(10_000),
);
try {
await handle.finished;
} finally {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit]: we should add a catch block here as well

clearTimeout(watchdog);
}
return events;
}

Expand Down
Loading