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

Handle errors of endpoints calls better in tests #135

Open
LorenzoS92 opened this issue Sep 6, 2022 · 3 comments
Open

Handle errors of endpoints calls better in tests #135

LorenzoS92 opened this issue Sep 6, 2022 · 3 comments
Labels
good first issue Good for newcomers

Comments

@LorenzoS92
Copy link
Contributor

LorenzoS92 commented Sep 6, 2022

Handle errors of endpoints calls better in tests.

Actually, if an endpoint return an error or a different response than the expected validateFunc, go runtime will panic.
Please review code of func runTestCases(t *testing.T, tests []TestCase) in main_test.go

@LorenzoS92 LorenzoS92 added the good first issue Good for newcomers label Sep 6, 2022
@bfabio
Copy link
Member

bfabio commented Oct 5, 2022

Related to #91

@bfabio
Copy link
Member

bfabio commented Oct 12, 2023

Hello @LorenzoS92, I don't think this one is fixed yet

@bfabio bfabio reopened this Oct 12, 2023
@LorenzoS92
Copy link
Contributor Author

LorenzoS92 commented Oct 12, 2023

Sorry for that, closed due to a plugin installed in my profile :)
Nevermind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants