Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Aug 21, 2023
1 parent de2aae1 commit c6e3952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ var balanceCmd = &cmds.Command{

var balanceStr string
if balance.Equals(big.NewInt(0)) && !isDone {
balanceStr = fmt.Sprintf("%s (warning: may display 0 if chain sync in progress)\n", types.FIL(balance))
balanceStr = fmt.Sprintf("%s (warning: may display 0 if chain sync in progress)", types.FIL(balance))
} else {
balanceStr = (types.FIL)(balance).String()
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/address_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestWalletBalance(t *testing.T) {

t.Log("[success] not found, zero")
balance := cmdClient.RunSuccess(ctx, "wallet", "balance", addr.String()).ReadStdout()
assert.Equal(t, "0 FIL\n", balance)
assert.Equal(t, "0 FIL (warning: may display 0 if chain sync in progress)\n", balance)

t.Log("[success] balance 1394000000000000000000000000")
balance = cmdClient.RunSuccess(ctx, "wallet", "balance", builtin.RewardActorAddr.String()).ReadStdout()
Expand All @@ -69,7 +69,7 @@ func TestWalletBalance(t *testing.T) {
var addrNew cmd.AddressResult
cmdClient.RunSuccessFirstLine(ctx, "wallet", "new")
balance = cmdClient.RunSuccess(ctx, "wallet", "balance", addrNew.Address.String()).ReadStdout()
assert.Equal(t, "0 FIL\n", balance)
assert.Equal(t, "0 FIL (warning: may display 0 if chain sync in progress)\n", balance)
}

func TestWalletLoadFromFile(t *testing.T) {
Expand Down

0 comments on commit c6e3952

Please sign in to comment.