Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Sep 18, 2023
1 parent 4e9a0df commit 020148c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/crosschain/keeper/gas_payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func TestKeeper_PayGasNativeAndUpdateCctx(t *testing.T) {
}

err := k.PayGasNativeAndUpdateCctx(ctx, chainID, &cctx, math.NewUint(inputAmount))
require.ErrorIs(t, err, types.ErrUnableToGetGasPrice)
require.ErrorIs(t, err, types.ErrCannotFindGasParams)
})

t.Run("should fail if not enough amount for the fee", func(t *testing.T) {
Expand Down Expand Up @@ -471,7 +471,7 @@ func TestKeeper_PayGasInERC20AndUpdateCctx(t *testing.T) {
}

err := k.PayGasInERC20AndUpdateCctx(ctx, chainID, &cctx, math.NewUint(inputAmount), false)
require.ErrorIs(t, err, types.ErrUnableToGetGasPrice)
require.ErrorIs(t, err, types.ErrCannotFindGasParams)
})

t.Run("should fail if can't find the ZRC20", func(t *testing.T) {
Expand Down

0 comments on commit 020148c

Please sign in to comment.