diff --git a/cmd/address.go b/cmd/address.go index b63a3d863b..edf2756779 100644 --- a/cmd/address.go +++ b/cmd/address.go @@ -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() } diff --git a/cmd/address_integration_test.go b/cmd/address_integration_test.go index 42b0d93d80..4c3a6a70d5 100644 --- a/cmd/address_integration_test.go +++ b/cmd/address_integration_test.go @@ -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() @@ -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) {