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

simpler http handler tests #38

Merged
merged 1 commit into from
Sep 25, 2024
Merged

simpler http handler tests #38

merged 1 commit into from
Sep 25, 2024

Conversation

metachris
Copy link
Collaborator

📝 Summary

The server doesn't need to start for handler unit-tests and it actually simplifies the tests quite a bit (see handler_test.go).

Also, say no to single-letter variables (renamed s to srv).


✅ I have run these commands

  • make lint
  • make test
  • go mod tidy

@metachris metachris requested a review from Ruteri September 25, 2024 09:50
@metachris metachris requested a review from dvush September 25, 2024 09:52
@metachris metachris merged commit 6876e90 into main Sep 25, 2024
2 checks passed
@metachris metachris deleted the handler-tests branch September 25, 2024 09:53
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