Skip to content

Commit

Permalink
[test] - Solve assignment to val variable problem
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiD2ta committed Jan 22, 2020
1 parent 9e13d3f commit ee944a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/coin/skycoin/models/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func TestRemoteWalletGetBalance(t *testing.T) {
_, err := wlt.GetBalance(Sky)
require.Error(t, err)
global_mock.On("WalletBalance", "wallet").Return(response, nil)
val, err = wlt.GetBalance(Sky)
val, err := wlt.GetBalance(Sky)
require.NoError(t, err)
require.Equal(t, val, uint64(42000000))
val, err = wlt.GetBalance(CoinHour)
Expand Down
2 changes: 1 addition & 1 deletion src/coin/skycoin/models/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestSkycoinBlockchainStatusGetCoinValue(t *testing.T) {
_, err = block.GetCoinValue(core.CoinCurrentSupply, "INVALIDCOIN")
require.Error(t, err)

val, err = block.GetCoinValue(core.CoinCurrentSupply, Sky)
val, err := block.GetCoinValue(core.CoinCurrentSupply, Sky)
require.NoError(t, err)
require.Equal(t, val, uint64(200111111))
val, err = block.GetCoinValue(core.CoinCurrentSupply, CoinHour)
Expand Down

0 comments on commit ee944a6

Please sign in to comment.