Skip to content

Commit

Permalink
[test] refs fibercrypto#136 - Fix return value of SkycoinApiMock::Upd…
Browse files Browse the repository at this point in the history
…ateWallet.

Fix: Return args's index 0 instead of 1
  • Loading branch information
AntiD2ta committed Nov 16, 2019
1 parent 4e4203d commit 109354c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coin/skycoin/models/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (m *SkycoinApiMock) Wallet(id string) (*api.WalletResponse, error) {
}
func (m *SkycoinApiMock) UpdateWallet(id, label string) error {
args := m.Called(id, label)
return args.Error(1)
return args.Error(0)
}
func (m *SkycoinApiMock) NewWalletAddress(id string, n int, password string) ([]string, error) {
args := m.Called(id, n, password)
Expand Down

0 comments on commit 109354c

Please sign in to comment.