Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Oct 2, 2022
1 parent 4d0a066 commit 0db3cb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions tests/integration/staking/keeper/unbonding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
banktestutil "github.com/cosmos/cosmos-sdk/x/bank/testutil"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
"github.com/cosmos/cosmos-sdk/x/staking/teststaking"
"github.com/cosmos/cosmos-sdk/x/staking/testutil"
"github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -55,7 +54,7 @@ func (suite *IntegrationTestSuite) SetupUnbondingTests(t *testing.T, hookCalled
suite.app.AccountKeeper.SetModuleAccount(ctx, notBondedPool)

// Create a validator
validator1 := teststaking.NewValidator(t, addrVals[0], PKs[0])
validator1 := testutil.NewValidator(t, addrVals[0], PKs[0])
validator1, issuedShares1 := validator1.AddTokensFromDel(valTokens)
require.Equal(t, valTokens, issuedShares1.RoundInt())

Expand All @@ -68,7 +67,7 @@ func (suite *IntegrationTestSuite) SetupUnbondingTests(t *testing.T, hookCalled
suite.app.StakingKeeper.SetDelegation(ctx, delegation)

// Create a validator to redelegate to
validator2 := teststaking.NewValidator(t, addrVals[1], PKs[1])
validator2 := testutil.NewValidator(t, addrVals[1], PKs[1])
validator2, issuedShares2 := validator2.AddTokensFromDel(valTokens)
require.Equal(t, valTokens, issuedShares2.RoundInt())

Expand Down
5 changes: 2 additions & 3 deletions x/staking/keeper/unbonding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
"github.com/cosmos/cosmos-sdk/x/staking/teststaking"
"github.com/cosmos/cosmos-sdk/x/staking/testutil"
"github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/golang/mock/gomock"
Expand Down Expand Up @@ -55,7 +54,7 @@ func (s *KeeperTestSuite) SetupUnbondingTests(t *testing.T, hookCalled *bool, ub
s.accountKeeper.SetModuleAccount(ctx, notBondedPool)

// Create a validator
validator1 := teststaking.NewValidator(t, addrVals[0], PKs[0])
validator1 := testutil.NewValidator(t, addrVals[0], PKs[0])
validator1, issuedShares1 := validator1.AddTokensFromDel(valTokens)
require.Equal(t, valTokens, issuedShares1.RoundInt())

Expand All @@ -68,7 +67,7 @@ func (s *KeeperTestSuite) SetupUnbondingTests(t *testing.T, hookCalled *bool, ub
s.stakingKeeper.SetDelegation(ctx, delegation)

// Create a validator to redelegate to
validator2 := teststaking.NewValidator(t, addrVals[1], PKs[1])
validator2 := testutil.NewValidator(t, addrVals[1], PKs[1])
validator2, issuedShares2 := validator2.AddTokensFromDel(valTokens)
require.Equal(t, valTokens, issuedShares2.RoundInt())

Expand Down

0 comments on commit 0db3cb0

Please sign in to comment.