-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(http/retry): unit test suite for
PeekTrailersBody<B>
`PeekTrailersBody<B>` contains some subtle edge cases related to the number of DATA frames yielded by the inner body, and how persistent it will be about polling for TRAILERS frames. for example, if it yields a DATA frame, it will not await trailers being available, but it *will* do so if the inner body does not yield a DATA frame. if a DATA frame is yielded, it will check for a TRAILERS frame, but it must be immmediately available. this is all subtle, and particularly subject to change with the upgrade to http-body 1.0's frame-oriented `Body` interface. so, this commit introduces a test suite for `PeekTrailersBody<B>`. it includes assertions to confirm when the peek middleware can and cannot observe the trailers. some `TODO(kate)` comments are left where issues exist. Signed-off-by: katelyn martin <[email protected]>
- Loading branch information
Showing
1 changed file
with
182 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters