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

Fail tests on NewConfig error #145

Closed
adatzer opened this issue Jun 20, 2022 · 0 comments
Closed

Fail tests on NewConfig error #145

adatzer opened this issue Jun 20, 2022 · 0 comments
Labels
cleanup Maintenance, cleaning up codebase or repo
Milestone

Comments

@adatzer
Copy link
Contributor

adatzer commented Jun 20, 2022

In some tests we call NewConfig and then assert it is not nil. If there is an error, the assertion will fail, however the test will continue. At the same time, in that case the config will be nil, which then triggers a panic for following assertions on its fields. We could fail the test instead.

@colmsnowplow colmsnowplow added the cleanup Maintenance, cleaning up codebase or repo label Jun 24, 2022
@colmsnowplow colmsnowplow added this to the Release 1.0.0 milestone Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Maintenance, cleaning up codebase or repo
Projects
None yet
Development

No branches or pull requests

2 participants