-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add simulator test wiring #12
Conversation
@Reecepbcups I can't assign you as a reviewer. Commenting for visibility. |
err = simtestutil.CheckExportSimulation(app, config, simParams) | ||
require.NoError(t, err) |
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 am getting a invalid height: 2; expected: 1
error on tokenfactory/app/sim_test.go:97
for all the test
Starting the simulation from time Sun May 21 15:21:12 UTC 2248 (unixtime 8785034472)
Simulating... block 1/500, operation 300/332. sim_test.go:97:
Error Trace: /home/reece/Desktop/Programming/Go/tokenfactory/app/sim_test.go:97
Error: Received unexpected error:
invalid height: 2; expected: 1
go test -timeout 3000s -run ^TestFullAppSimulation$ github.com/strangelove-ventures/tokenfactory/app -v -Enabled
Maybe something with config.InitialBlockHeight
? or if simErr needs to just be checked selectively if some simParams or app value is set
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.
This is a known CosmosSDK issue. See cosmos/cosmos-sdk#20592.
Try running with -Commit=true
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.
cool ty! updated the summary. Leaving this as unresolved for future context
Thanks! |
Fixes #11
Summaryt
This PR fixes the existing simulator cases and adds simulator test wiring.
All tests pass except
TestAppImportExport
like in strangelove-ventures/poa#186Not sure why.
Run
go test -timeout 3000s -run ^TestFullAppSimulation$ github.com/strangelove-ventures/tokenfactory/app -v -Enabled -Commit=true