osmosis
osmosis copied to clipboard
Add table-driven distribute test
Closes: #1995
What is the purpose of the change
Change TestGetModuleToDistributeCoins
and TestGetModuleDistributedCoins
into table driven tests
SetupNewGauge
and SetupNewGaugeWithDenom
now takes in an additional param numEpochsPaidOver
Documentation and Release Note
- Does this pull request introduce a new feature or user-facing behavior changes? no
- Is a relevant changelog entry added to the
Unreleased
section inCHANGELOG.md
? no - How is the feature or change documented? not documented
Is there a reason we removed the
Require
statements?
to reduce verbosity, said p0mvn
Is there a reason we removed the
Require
statements?to reduce verbosity, said p0mvn
I'm not following? How does Require()
add verbosity? We want to be consistent in our test usage and have tests exit early as possible upon failures IMO.
Is there a reason we removed the
Require
statements?to reduce verbosity, said p0mvn
I'm not following? How does
Require()
add verbosity? We want to be consistent in our test usage and have tests exit early as possible upon failures IMO.
I assumed that suite.Error()
and suite.Require().Error()
are equivalent. That was the motivation for the suggestion. However, after seeing @alexanderbez 's comment, I checked that the suite.Require().Error()
does indeed fail immediately contrary to the alternative.
Knowing this, I think my earlier suggestion isn't what we want. Apologies for the confusion @catShaark and thanks @alexanderbez
Let's merge this upon reverting excluding the Require()
:) !
Let's merge this upon reverting excluding the
Require()
:) !
@mattverse, changes reverted
So I want to use BeginNewBlock
to execute epoch instead of distribute manually, but right now BeginNewBlock
with execute epoch doesn't work as expected ( it won't trigger gauge distribution in incentives test). I explain the problem in this issue here, @p0mvn can you take a look https://github.com/osmosis-labs/osmosis/issues/2241
@p0mvn , I have some questions needed answer before I can actually finish this issue.
@catShaark answered! I think ur understanding there is correct!
Hey @catShaark! What specific questions / unknowns are present for this PR? I want to ensure there are no blockers on our side for this.
@czarcas7ic , I have some questions needed answer before I can actually finish this issue.
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!