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: use mocked api.Commit also in Windows tests #560

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

ivokub
Copy link
Collaborator

@ivokub ivokub commented Mar 13, 2023

For safety, we use mocked commitment hint only when running in tests or in debug mode. This is to avoid using it by accident in real application, as the mocked commitment is not sound.

The test if we are in testing environment didn't consider Windows and this made CI tests fail.

EDIT: another approach is to not have the check at all, but I think it gives a bit more of safety.

@ivokub ivokub added the bug Something isn't working label Mar 13, 2023
@ivokub ivokub added this to the v0.9.0 milestone Mar 13, 2023
@ivokub ivokub requested a review from gbotrel March 13, 2023 15:36
@ivokub ivokub self-assigned this Mar 13, 2023
@gbotrel gbotrel merged commit fd233bd into develop Mar 13, 2023
@ivokub ivokub deleted the fix/windows-ci branch March 13, 2023 16:06
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