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

chore: do not use time of next round in tests #2455

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

mraszyk
Copy link
Contributor

@mraszyk mraszyk commented Nov 6, 2024

This PR avoids querying the time of next round in tests by advancing time so that time does not grow implicitly when executing a round. The motivation for this change is to clean up the StateMachine test API.

Copy link
Member

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this clean-up @mraszyk !

Copy link
Contributor

@adambratschikaye adambratschikaye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm understanding this correctly, executing a round will advance the time by EXECUTE_ROUND_TIME_INCREMENT, unless the time has already been manually advanced via advance_time. Could we add some documentation about that on the advance_time and time methods?

@mraszyk mraszyk added this pull request to the merge queue Nov 7, 2024
Merged via the queue into master with commit b75dd87 Nov 7, 2024
31 checks passed
@mraszyk mraszyk deleted the mraszyk/time-of-next-round branch November 7, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants