Skip to content

Commit 573b75e

Browse files
committed
test: keep WPT backend checks alive
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
1 parent d099639 commit 573b75e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎test/parallel/test-common-wpt-backends.js‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ async function collect(backend, throws) {
7373
},
7474
});
7575

76-
await handle.finished;
76+
const watchdog = setTimeout(
77+
common.mustNotCall(`The ${backend} WPT backend did not finish`),
78+
common.platformTimeout(10_000),
79+
);
80+
try {
81+
await handle.finished;
82+
} finally {
83+
clearTimeout(watchdog);
84+
}
7785
return events;
7886
}
7987

0 commit comments

Comments
 (0)