Skip to content

Some trivial fixup on tests #503

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

Merged
merged 2 commits into from
Mar 7, 2025
Merged

Some trivial fixup on tests #503

merged 2 commits into from
Mar 7, 2025

Conversation

graebm
Copy link
Contributor

@graebm graebm commented Mar 7, 2025

  • Remove the word "test" from any test name
  • Add the word "decoder" to decoder tests
  • Lots of fixup in h1_encoder tests:
    • Rename some tests to make more sense
    • Always assert that aws_h1_encoder_message_init_from_request() succeeds or fails. Previously a lot of tests weren't ACTUALLY testing anything!!! Fortunately no actual bugs were uncovered here.
    • Use the "bad request" helper in more places
    • Add "Host" header to all requests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

graebm added 2 commits March 6, 2025 16:31
- rename some tests to make more sense
- always assert that aws_h1_encoder_message_init_from_request() succeeds or fails. Previously a lot of tests weren't ACTUALLY testing anything!!! fortunately no actual bugs were uncovered here.
- use the "bad request" helper in more places
- add Host header to all requests
- add the word "decoder" to all h1_decoder tests
@graebm graebm merged commit 84e8b41 into main Mar 7, 2025
40 checks passed
@graebm graebm deleted the trivial-test-fixup branch March 7, 2025 18:23
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.

3 participants