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

epoching: test updating epoch interval #723

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

SebastianElvis
Copy link
Member

This PR adds a test case to test updating the epoch interval in the middle of execution. In particular, it lets the chain run for a random number of blocks, update the epoch interval, ensure the current epoch metadata is not affected, and ensure the next epoch metadata is updated.

NOTE: Will try to do an e2e test for this as well.

@SebastianElvis SebastianElvis requested a review from vitsalis July 19, 2024 07:09
@KonradStaniec
Copy link
Collaborator

NOTE: Will try to do an e2e test for this as well.

Do we need e2e test for this ? If the semantics of update is that current epoch is not affected, what more this test would give us. My main concern is that it would mostly test governance logic module logic, not epoching module logic and would add additional time to tests.

On the other hand, It would be good to see unit/integration tests which shows what is happening when parameter update execution falls on epoch boundaries i.e what happens if epoch is changed in last block of the epoch, what happens when paramter update is executed in first block of the next epoch etc.

Of course I do not have full context to this task, so this suggestions maybe not relevant :)

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.

2 participants