Skip to content

Commit

Permalink
Addressing simon's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Sep 22, 2023
1 parent a3a3ccd commit ca39b1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,6 @@ func (tr TestRun) waitForSlashMeterReplenishment(
}

type waitTimeAction struct {
Consumer ChainID
WaitTime time.Duration
}

Expand Down
12 changes: 2 additions & 10 deletions tests/integration/common.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package integration

import (
"bytes"
"fmt"
"time"

Expand Down Expand Up @@ -617,14 +616,7 @@ func (s *CCVTestSuite) setupValidatorPowers() {
// mustGetStakingValFromTmVal returns the staking validator from the current state of the staking keeper,
// corresponding to a given tendermint validator. Note this func will fail the test if the validator is not found.
func (s *CCVTestSuite) mustGetStakingValFromTmVal(tmVal tmtypes.Validator) (stakingVal stakingtypes.Validator) {
vals := s.providerApp.GetTestStakingKeeper().GetAllValidators(s.providerCtx())
for i, val := range vals {
consAddr, err := val.GetConsAddr()
s.Require().NoError(err)
if bytes.Equal(consAddr.Bytes(), tmVal.Address.Bytes()) {
stakingVal = vals[i]
}
}
s.Require().NotZero(stakingVal)
stakingVal, found := s.providerApp.GetTestStakingKeeper().GetValidatorByConsAddr(s.providerCtx(), sdk.ConsAddress(tmVal.Address))
s.Require().True(found)
return stakingVal
}

0 comments on commit ca39b1d

Please sign in to comment.