Skip to content

Commit

Permalink
chore: small nits
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Apr 29, 2024
1 parent e4b0534 commit 8763e69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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 All @@ -47,7 +47,7 @@ func TestSendRestriction(t *testing.T) {
_, err = keeper.SendRestrictionFn(ctx, from.Bytes, to.Bytes, sdk.NewCoins(sdk.NewCoin(
keeper.Denom, ONE,
)))
// ASSERT: Action should've failed due to blocked sender.
// ASSERT: The action should've failed due to blocked sender.
require.ErrorContains(t, err, "blocked from sending")

// ARRANGE: Unblock from address.
Expand All @@ -59,6 +59,6 @@ func TestSendRestriction(t *testing.T) {
_, err = keeper.SendRestrictionFn(ctx, from.Bytes, to.Bytes, sdk.NewCoins(sdk.NewCoin(
keeper.Denom, ONE,
)))
// ASSERT: Action should've failed due to blocked recipient.
// ASSERT: The action should've failed due to blocked recipient.
require.ErrorContains(t, err, "blocked from receiving")
}

0 comments on commit 8763e69

Please sign in to comment.