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

🐛 Fix error with no badger options being loaded #76

Merged
merged 2 commits into from
Apr 6, 2021
Merged

🐛 Fix error with no badger options being loaded #76

merged 2 commits into from
Apr 6, 2021

Conversation

Jictyvoo
Copy link
Contributor

My apologies, I forget to test with only Database option given in Config, without using ConfigDefault

This PR, is a fix to this bug

When BadgerOptions is not passed, a panic error is thrown

panic: Invalid ValueLogFileSize, must be in range [1MB, 2GB)

@ReneWerner87
Copy link
Member

Can we prevent this in the future with an additional test? If so, you are welcome to add one

@ReneWerner87 ReneWerner87 added the ☢️ Bug Something isn't working label Mar 31, 2021
@Jictyvoo
Copy link
Contributor Author

Can we prevent this in the future with an additional test? If so, you are welcome to add one

I'll try to add a test later, maybe tomorrow

@ReneWerner87
Copy link
Member

Thx

@ReneWerner87
Copy link
Member

@Jictyvoo what about the test ?

- Using recover function to test panic
- Added .gitignore to ignore generated test directories
@Jictyvoo
Copy link
Contributor Author

Jictyvoo commented Apr 6, 2021

@Jictyvoo what about the test ?

Sorry for the delay, I take the weekend to rest a little.
Tests added

@ReneWerner87
Copy link
Member

ReneWerner87 commented Apr 6, 2021

Ok, no problem, take your time

@Jictyvoo
Copy link
Contributor Author

Jictyvoo commented Apr 6, 2021

Already added the tests. I don't know if has more to add

@ReneWerner87 ReneWerner87 merged commit 7cfce7a into gofiber:main Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☢️ Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants