-
Notifications
You must be signed in to change notification settings - Fork 741
Move avm.newContext
to snowtest.Context
#2513
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
Conversation
snowtest.NewContext
helperavm.newContext
to snowtest.NewContext
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd modify snowtest.Context constructor to specify the target chain, instead of fixing it ex-psto via ctx.ChainID = ctx.XChainID
.
We are already not doing it for all the UTs and it may become harder to maintain if we ever change context attributes relationships.
I think ideally snowtest.Context should fully format the context and tests should just read from it
Why this should be merged
Removes all one-off test helpers in the
avm
to use a newsnowtest.Context
helper.How this works
create + replace
How this was tested
CI