Skip to content

Commit f7c9f3f

Browse files
bashichromium-wpt-export-bot
authored andcommitted
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}
1 parent d435383 commit f7c9f3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)