Skip to content

Commit

Permalink
[sky] refs #279 - Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
olemis committed Jan 23, 2020
1 parent 13f7880 commit 64d0bc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/coin/skycoin/models/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ func TestRemoteWalletGetBalance(t *testing.T) {
poolSection: PoolSection,
}
global_mock.On("WalletBalance", "wallet").Return(response, errors.New("failure")).Once()
val, err := wlt.GetBalance(Sky)
_, 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
6 changes: 3 additions & 3 deletions src/coin/skycoin/models/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ func TestSkycoinBlockchainStatusGetCoinValue(t *testing.T) {
block := &SkycoinBlockchain{CacheTime: 20}

// api interaction error
val, err := block.GetCoinValue(core.CoinCurrentSupply, Sky)
_, err := block.GetCoinValue(core.CoinCurrentSupply, Sky)
require.Error(t, err)

// invalid coin
val, err = block.GetCoinValue(core.CoinCurrentSupply, "INVALIDCOIN")
_, 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 64d0bc7

Please sign in to comment.