Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
h5law committed Nov 23, 2023
1 parent 0215f86 commit 39b6191
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func TestMsgServer_UndelegateFromGateway_SuccessfullyUndelegateFromUnstakedGatew
appAddr := sample.AccAddress()
gatewayAddr := sample.AccAddress()
// Mock the gateway being staked via the staked gateway map
keepertest.RemoveGatewayFromStakedGatewayMap(t, gatewayAddr)
keepertest.AddGatewayToStakedGatewayMap(t, gatewayAddr)

// Prepare the application
stakeMsg := &types.MsgStakeApplication{
Expand Down Expand Up @@ -220,7 +220,7 @@ func TestMsgServer_UndelegateFromGateway_SuccessfullyUndelegateFromUnstakedGatew
require.Equal(t, gatewayAddr, foundApp.DelegateeGatewayAddresses[0])

// Mock unstaking the gateway
keepertest.AddGatewayToStakedGatewayMap(t, gatewayAddr)
keepertest.RemoveGatewayFromStakedGatewayMap(t, gatewayAddr)

// Prepare an undelegation message
undelegateMsg := &types.MsgUndelegateFromGateway{
Expand Down

0 comments on commit 39b6191

Please sign in to comment.