From e8d0bd3bf5d8d15228fbee76bca67c83a28ed787 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Tue, 15 Oct 2024 11:56:23 +0200 Subject: [PATCH] chore: rename testevents import --- .../keeper/msg_server_transfer_application_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/application/keeper/msg_server_transfer_application_test.go b/x/application/keeper/msg_server_transfer_application_test.go index a071e7f76..aaffbec8f 100644 --- a/x/application/keeper/msg_server_transfer_application_test.go +++ b/x/application/keeper/msg_server_transfer_application_test.go @@ -6,7 +6,7 @@ import ( cosmostypes "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - events2 "github.com/pokt-network/poktroll/testutil/events" + testutilevents "github.com/pokt-network/poktroll/testutil/events" keepertest "github.com/pokt-network/poktroll/testutil/keeper" "github.com/pokt-network/poktroll/testutil/sample" appkeeper "github.com/pokt-network/poktroll/x/application/keeper" @@ -73,7 +73,7 @@ func TestMsgServer_TransferApplication_Success(t *testing.T) { // Assert that the transfer end event was emitted. events := cosmostypes.UnwrapSDKContext(ctx).EventManager().Events() - transferBeginEvents := events2.FilterEvents[*apptypes.EventTransferBegin](t, events) + transferBeginEvents := testutilevents.FilterEvents[*apptypes.EventTransferBegin](t, events) require.Equal(t, 1, len(transferBeginEvents), "expected 1 transfer begin event") require.Equal(t, srcBech32, transferBeginEvents[0].GetSourceAddress()) require.Equal(t, dstBech32, transferBeginEvents[0].GetDestinationAddress()) @@ -115,7 +115,7 @@ func TestMsgServer_TransferApplication_Success(t *testing.T) { // Assert that the transfer end event was emitted. events = cosmostypes.UnwrapSDKContext(ctx).EventManager().Events() - transferEndEvents := events2.FilterEvents[*apptypes.EventTransferEnd](t, events) + transferEndEvents := testutilevents.FilterEvents[*apptypes.EventTransferEnd](t, events) require.Equal(t, 1, len(transferEndEvents), "expected 1 transfer end event") require.Equal(t, srcBech32, transferEndEvents[0].GetSourceAddress()) require.Equal(t, dstBech32, transferEndEvents[0].GetDestinationAddress())