Skip to content

Commit

Permalink
fix test files
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Aug 4, 2023
1 parent 8ae5ecb commit 6fbda97
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions x/crosschain/keeper/grpc_query_in_tx_hash_to_cctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
var _ = strconv.IntSize

func TestInTxHashToCctxQuerySingle(t *testing.T) {
keeper, ctx := keepertest.ZetacoreKeeper(t)
keeper, ctx := keepertest.CrosschainKeeper(t)
wctx := sdk.WrapSDKContext(ctx)
msgs := createNInTxHashToCctx(keeper, ctx, 2)
for _, tc := range []struct {
Expand Down Expand Up @@ -70,7 +70,7 @@ func TestInTxHashToCctxQuerySingle(t *testing.T) {
}

func TestInTxHashToCctxQueryPaginated(t *testing.T) {
keeper, ctx := keepertest.ZetacoreKeeper(t)
keeper, ctx := keepertest.CrosschainKeeper(t)
wctx := sdk.WrapSDKContext(ctx)
msgs := createNInTxHashToCctx(keeper, ctx, 5)

Expand Down
6 changes: 3 additions & 3 deletions x/crosschain/keeper/in_tx_hash_to_cctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func createNInTxHashToCctx(keeper *keeper.Keeper, ctx sdk.Context, n int) []type
}

func TestInTxHashToCctxGet(t *testing.T) {
keeper, ctx := keepertest.ZetacoreKeeper(t)
keeper, ctx := keepertest.CrosschainKeeper(t)
items := createNInTxHashToCctx(keeper, ctx, 10)
for _, item := range items {
rst, found := keeper.GetInTxHashToCctx(ctx,
Expand All @@ -40,7 +40,7 @@ func TestInTxHashToCctxGet(t *testing.T) {
}
}
func TestInTxHashToCctxRemove(t *testing.T) {
keeper, ctx := keepertest.ZetacoreKeeper(t)
keeper, ctx := keepertest.CrosschainKeeper(t)
items := createNInTxHashToCctx(keeper, ctx, 10)
for _, item := range items {
keeper.RemoveInTxHashToCctx(ctx,
Expand All @@ -54,7 +54,7 @@ func TestInTxHashToCctxRemove(t *testing.T) {
}

func TestInTxHashToCctxGetAll(t *testing.T) {
keeper, ctx := keepertest.ZetacoreKeeper(t)
keeper, ctx := keepertest.CrosschainKeeper(t)
items := createNInTxHashToCctx(keeper, ctx, 10)
require.ElementsMatch(t,
nullify.Fill(items),
Expand Down
6 changes: 3 additions & 3 deletions x/crosschain/keeper/keeper_out_tx_tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func createNOutTxTracker(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.
}

func TestOutTxTrackerGet(t *testing.T) {
keeper, ctx := keepertest.ZetacoreKeeper(t)
keeper, ctx := keepertest.CrosschainKeeper(t)
items := createNOutTxTracker(keeper, ctx, 10)
for _, item := range items {
rst, found := keeper.GetOutTxTracker(ctx,
Expand All @@ -45,7 +45,7 @@ func TestOutTxTrackerGet(t *testing.T) {
}
}
func TestOutTxTrackerRemove(t *testing.T) {
k, ctx := keepertest.ZetacoreKeeper(t)
k, ctx := keepertest.CrosschainKeeper(t)
items := createNOutTxTracker(k, ctx, 10)
for _, item := range items {
k.RemoveOutTxTracker(ctx,
Expand All @@ -61,7 +61,7 @@ func TestOutTxTrackerRemove(t *testing.T) {
}

func TestOutTxTrackerGetAll(t *testing.T) {
keeper, ctx := keepertest.ZetacoreKeeper(t)
keeper, ctx := keepertest.CrosschainKeeper(t)
items := createNOutTxTracker(keeper, ctx, 10)
require.ElementsMatch(t,
nullify.Fill(items),
Expand Down

0 comments on commit 6fbda97

Please sign in to comment.