Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand test cases for gRPC-Web Trailers to servers-streaming RPCs #935

Conversation

timostamm
Copy link
Member

We noticed a bug in the gRPC-Web transport from @connectrpc/connect-web, where a trailers-only response for a server-streaming RPC failed to raise an error as expected.

I think it makes sense to expand the test cases to cover server-streaming in addition to unary.

Signed-off-by: Timo Stamm <ts@timostamm.de>
@timostamm timostamm force-pushed the Expand-test-cases-for-gRPC-Web-Trailers-to-servers-streaming-RPCs branch from 12271fa to e07dfcb Compare October 8, 2024 15:45

# Server-streaming: Trailers and status are in body (no other response messages)
- request:
testName: server-stream/trailers-in-body/expected
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For increased clarity of test case names (and more consistency/uniformity), could you rename the existing ones to have a "unary/" prefix?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we okay with potentially breaking known-failing lists?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. Done in 911c055.

Signed-off-by: Timo Stamm <ts@timostamm.de>
@jhump jhump enabled auto-merge (squash) October 8, 2024 17:26
@jhump jhump merged commit b9e9115 into connectrpc:main Oct 8, 2024
4 of 6 checks passed
@timostamm timostamm deleted the Expand-test-cases-for-gRPC-Web-Trailers-to-servers-streaming-RPCs branch October 9, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants