Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit e867060

Browse files
bashimoz-wptsync-bot
authored andcommitted
Bug 1729396 [wpt PR 30368] - Update idlharness test for webtransport, a=testonly
Automatic update from web-platform-tests Update idlharness test for webtransport Catch promise rejections to avoid the test timing out. Bug: 1201569 Change-Id: Ia70e362aa43b5c36ee3d33ffe40e1ffcfcdb98f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3144590 Reviewed-by: Nidhi Jaju <[email protected]> Commit-Queue: Kenichi Ishibashi <[email protected]> Cr-Commit-Position: refs/heads/main@{#918718} -- wpt-commits: f7c9f3fa5ba846b79e31852e97c80a8d3eaf3c13 wpt-pr: 30368
1 parent 0f53ca3 commit e867060

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/web-platform/tests/webtransport/idlharness.any.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@ idl_test(
1616
// ReceiveStream
1717
});
1818
self.webTransport = new WebTransport("https://example.com/");
19+
// `ready` and `closed` promises will be rejected due to connection error.
20+
// Catches them to avoid unhandled rejections.
21+
self.webTransport.ready.catch(() => {});
22+
self.webTransport.closed.catch(() => {});
1923
}
2024
);

0 commit comments

Comments
 (0)