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

test: ensure only sdk.DefaultBondDenom is used for fees in our modules simulation #743

Merged
merged 5 commits into from
Apr 24, 2022

Conversation

giunatale
Copy link
Contributor

Closes #369

This PR does not really fix #369, as explained in the issue itself.
However, we at least switch over using only the sdk.DefaultBondDenom coin for fees in our modules' simulation.
Problem will stil exist however for modules we pull from the cosmos-sdk, so out of gas will still occasionally occur (and it's highly likely to occur for large simulations), but I propose we close #369 as this can't really be avoided.

I've also made sure we initialize the rand seed in TestAppStateDeterminism, and fixed an error in how we were selecting auctions for msgParticipate simulation.

Apologies if I may have bundled too many things together in this PR.

@codecov
Copy link

codecov bot commented Apr 22, 2022

Codecov Report

Merging #743 (86dc698) into develop (9bab52f) will increase coverage by 0.03%.
The diff coverage is 38.55%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #743      +/-   ##
===========================================
+ Coverage    11.44%   11.47%   +0.03%     
===========================================
  Files          278      279       +1     
  Lines        60780    60803      +23     
===========================================
+ Hits          6955     6976      +21     
- Misses       53663    53664       +1     
- Partials       162      163       +1     
Impacted Files Coverage Δ
x/campaign/simulation/simulation.go 0.00% <0.00%> (ø)
x/launch/simulation/simulation.go 0.00% <0.00%> (ø)
x/participation/simulation/simulation.go 0.00% <0.00%> (ø)
x/profile/simulation/simulation.go 0.00% <0.00%> (ø)
x/reward/simulation/simulation.go 0.00% <0.00%> (ø)
x/participation/simulation/store.go 82.85% <88.23%> (+0.83%) ⬆️
x/participation/keeper/msg_participate.go 100.00% <100.00%> (ø)
x/participation/keeper/registration_period.go 100.00% <100.00%> (ø)

Copy link
Contributor

@aljo242 aljo242 left a comment

Choose a reason for hiding this comment

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

Do we need RandomAuctionStandby at this point?

@giunatale
Copy link
Contributor Author

Do we need RandomAuctionStandby at this point?

Yes, for msgCancelAuction

@lumtis lumtis merged commit 10f3301 into develop Apr 24, 2022
@lumtis lumtis deleted the test/simulation-fees branch April 24, 2022 19:15
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.

Simulation test: out of gas error for some simulation
3 participants