From 39b6191442c70d7a4b50083e01337a7cd932412b Mon Sep 17 00:00:00 2001 From: harry <53987565+h5law@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:46:47 +0000 Subject: [PATCH] chore: fix tests --- .../keeper/msg_server_undelegate_from_gateway_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/application/keeper/msg_server_undelegate_from_gateway_test.go b/x/application/keeper/msg_server_undelegate_from_gateway_test.go index 18239de9c..19d793927 100644 --- a/x/application/keeper/msg_server_undelegate_from_gateway_test.go +++ b/x/application/keeper/msg_server_undelegate_from_gateway_test.go @@ -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{ @@ -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{