Skip to content

Commit

Permalink
chore: small nit
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Apr 29, 2024
1 parent e4b0534 commit 55231b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/aura/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ func TestSendRestriction(t *testing.T) {
_, err := keeper.SendRestrictionFn(ctx, from.Bytes, to.Bytes, sdk.NewCoins(sdk.NewCoin(
"uusdc", math.NewInt(1_000_000),
)))
// ASSERT: Action should succeed as it's not USDY.
// ASSERT: The action should've succeeded due to different denom.
require.NoError(t, err)

// ACT: Attempt to send 1 USDY.
_, err = keeper.SendRestrictionFn(ctx, from.Bytes, to.Bytes, sdk.NewCoins(sdk.NewCoin(
keeper.Denom, ONE,
)))
// ASSERT: Action should succeed.
// ASSERT: The action should've succeeded.
require.NoError(t, err)

// ARRANGE: Set paused state to true.
Expand All @@ -35,7 +35,7 @@ func TestSendRestriction(t *testing.T) {
_, err = keeper.SendRestrictionFn(ctx, from.Bytes, to.Bytes, sdk.NewCoins(sdk.NewCoin(
keeper.Denom, ONE,
)))
// ASSERT: Action should succeed.
// ASSERT: The action should've failed due to module being paused.
require.ErrorContains(t, err, "ausdy transfers are paused")

// ARRANGE: Set paused state to false.
Expand Down

0 comments on commit 55231b1

Please sign in to comment.