Skip to content

Commit 1c9baec

Browse files
authored
test: keep WPT backend checks alive
Signed-off-by: Filip Skokan <[email protected]> PR-URL: #65320 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Aviv Keller <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 13fcd6f commit 1c9baec

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)