Skip to content

Commit

Permalink
test: remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybxyz committed Apr 14, 2022
1 parent 1afc2b6 commit 43c51cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions x/claim/keeper/claim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,11 @@ func (s *KeeperTestSuite) TestSimulateGasUsage_VoteCondition() {
s.vote(recipient, 1, govtypes.OptionYes)
}

// Expected gas threshold
expConsumedGasLimit := sdk.Gas(100_000)

// Vote proposal and claim condition
for i, recipient := range recipients[5000:] {
for _, recipient := range recipients[5000:] {
gasConsumedBefore := s.ctx.GasMeter().GasConsumed()

s.vote(recipient, 2, govtypes.OptionYes)
Expand All @@ -552,6 +555,6 @@ func (s *KeeperTestSuite) TestSimulateGasUsage_VoteCondition() {

gasConsumed := s.ctx.GasMeter().GasConsumed()
gasConsumed = gasConsumed - gasConsumedBefore
s.T().Logf("[%d] GasConsumed: %d\n", i+1, gasConsumed)
s.Require().LessOrEqual(gasConsumed, expConsumedGasLimit)
}
}

0 comments on commit 43c51cc

Please sign in to comment.