Skip to content

chore(dot/digest): fix TestHandler_GrandpaForcedChange by initializing runtimes mapping#3142

Closed
EclesioMeloJunior wants to merge 3 commits intoqdm12/hashtoruntimefrom
eclesio/fix-TestHandler_GrandpaScheduledChange
Closed

chore(dot/digest): fix TestHandler_GrandpaForcedChange by initializing runtimes mapping#3142
EclesioMeloJunior wants to merge 3 commits intoqdm12/hashtoruntimefrom
eclesio/fix-TestHandler_GrandpaScheduledChange

Conversation

@EclesioMeloJunior
Copy link
Copy Markdown
Member

Changes

  • The test TestHandler_GrandpaForcedChange was not initializing/storing any runtime in the blocktree.runtimes field, so when the function onFinalisation is called it panics since there is no entry for the given block hash

Tests

go test -timeout 10m -run ^TestHandler_GrandpaScheduledChange$ github.com/ChainSafe/gossamer/dot/digest --tags=integration -v

Issues

N/A

Primary Reviewer

@qdm12

Copy link
Copy Markdown
Contributor

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

Awesome 💯 !! Also feel free to push to my branches directly, I'll be careful not to force push on my branches for the time being.

And also feel free to squash and merge to my branch 😉 I'll work only mornings to be sure we don't duplicate work and let you know on Elements

@EclesioMeloJunior
Copy link
Copy Markdown
Member Author

I will close this PR since it does not make sense as I am doing a refactor around the in-memory runtimes, more details here: #3151

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