-
Notifications
You must be signed in to change notification settings - Fork 745
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
test: Add integration test for ICS epochs #3031
Conversation
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.
Can you please rename tests/ics
to tests/integration
.
PRs that will get in at a later time already have the rename.
- fix lint and broken tests (possible timeout issue)
You can skip refactoring upgrade tests.
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.
toolchain go1.22.0
breaks parts of the CI.
delegateFn(provCtx) | ||
// Second VSCPacket should only be created at the end of the current epoch | ||
require.Empty(t, getVSCPacketsFn()) | ||
require.Empty(t, getVSCPacketsFn()) |
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.
Why do we have two Empty
calls here?
return providerKeeper.GetPendingVSCPackets(provCtx, ccvSuite.GetCCVPath().EndpointA.Chain.ChainID) | ||
} | ||
|
||
nextEpochs := func(ctx sdk.Context) sdk.Context { |
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.
nit: nextEpochs
to nextEpoch
because it seems to just "move" the system by one epoch.
ctx = ccvSuite.GetProviderChain().GetContext() | ||
} | ||
} | ||
fmt.Println(app.StakingKeeper.GetLastTotalPower(provCtx)) |
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.
Do we need the fmt.Println
s here and below?
Description
Partially closes: #3010
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API, client, or state breaking change (i.e., requires minor or major version bump).changelog
(for details, see contributing guidelines)Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change