Skip to content

Commit

Permalink
tests: update stop_consumer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Oct 17, 2023
1 parent e40b8e2 commit 03dc159
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/stop_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func (s *CCVTestSuite) TestStopConsumerChain() {
valAddr, err := sdk.ValAddressFromHex(tmValidator.Address.String())
s.Require().NoError(err)

validator, found := providerStakingKeeper.GetValidator(s.providerCtx(), valAddr)
s.Require().True(found)
validator, err := providerStakingKeeper.GetValidator(s.providerCtx(), valAddr)
s.Require().NoError(err)

// get delegator address
delAddr := s.providerChain.SenderAccount.GetAddress()
Expand Down Expand Up @@ -64,7 +64,7 @@ func (s *CCVTestSuite) TestStopConsumerChain() {
func(suite *CCVTestSuite) error {
for i := 0; i < ubdOpsNum; i++ {
// undelegate one quarter of the shares
_, err := providerStakingKeeper.Undelegate(s.providerCtx(), delAddr, valAddr, testShares.QuoInt64(int64(ubdOpsNum)))
_, _, err := providerStakingKeeper.Undelegate(s.providerCtx(), delAddr, valAddr, testShares.QuoInt64(int64(ubdOpsNum)))
if err != nil {
return err
}
Expand Down

0 comments on commit 03dc159

Please sign in to comment.