Skip to content

Conversation

@olegrok
Copy link
Contributor

@olegrok olegrok commented Apr 1, 2025

ChatGPT found possible inconsistency in usage callbacks in tests. We update round inside setup.setRound and for events we use global maps: currentHeight and currentRound. But processed messages can be from previous/future rounds. And as a source of truth we need to use height and round from view.

olegrok added 3 commits April 1, 2025 20:25
ChatGPT found possible inconsistency in usage callbacks in tests.
We update round inside `setup.setRound` and for events we use global maps:
currentHeight and currentRound. But processed messages can be from previous/future
rounds. And as a source of truth we need to use height and round from view.
That should be fixed in b0ab720 but failures in CI
says that it didn't help. Seems gorounine in Never function makes several additional iterations.
This fix a bit strange but here we save problematic variable in a variable so after it it's
safe to modify test suite state.
@olegrok olegrok added this pull request to the merge queue Apr 1, 2025
Merged via the queue into main with commit d3e4283 Apr 1, 2025
15 checks passed
@olegrok olegrok deleted the fix-ibft-test branch April 1, 2025 18:14
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.

3 participants