Skip to content

Streams: add missing asserts in tee test#28153

Merged
domenic merged 3 commits into
web-platform-tests:masterfrom
MattiasBuelens:rs-tee-missing-asserts
Mar 20, 2021
Merged

Streams: add missing asserts in tee test#28153
domenic merged 3 commits into
web-platform-tests:masterfrom
MattiasBuelens:rs-tee-missing-asserts

Conversation

@MattiasBuelens

Copy link
Copy Markdown
Contributor

In "ReadableStream teeing: failing to cancel the original stream should cause cancel() to reject on branches", we error the stream and then cancel both branches. However, we don't check that those cancel() promises are actually rejected with the stream's error.

This PR adds those missing asserts. This also ensures that implementations don't accidentally reject these promises with an unexpected reason.

Accompanies whatwg/streams#1112.

Comment thread streams/readable-streams/tee.any.js
Comment thread streams/readable-streams/tee.any.js Outdated
@domenic
domenic merged commit 89d77a4 into web-platform-tests:master Mar 20, 2021
@MattiasBuelens
MattiasBuelens deleted the rs-tee-missing-asserts branch March 20, 2021 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants