Skip to content

Commit

Permalink
chore: rename testevents import
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Oct 15, 2024
1 parent 1e6366e commit e8d0bd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/application/keeper/msg_server_transfer_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit e8d0bd3

Please sign in to comment.