Skip to content

Commit

Permalink
[test] refs fibercrypto#143 - Upgrade TestSkycoinAddressScanUnspentOu…
Browse files Browse the repository at this point in the history
…tputs.

Upgrade coverage of SkycoinAddress::ScanUnspentOutputs method.
  • Loading branch information
AntiD2ta committed Nov 7, 2019
1 parent 76845b8 commit 7d6ce3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
UNAME_S = $(shell uname -s)
DEFAULT_TARGET ?= desktop
DEFAULT_ARCH ?= linux
COIN = skycoin ##In future use as a parameter tu make command.
##In future use as a parameter tu make command.
COIN = skycoin
COVERAGEPATH = src/coin/$(COIN)
COVERAGEFILE = $(COVERAGEPATH)/coverage.out
COVERAGEHTML = $(COVERAGEPATH)/coverage.html
Expand Down
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 @@ -94,9 +94,9 @@ func TestSkycoinAddressScanUnspentOutputs(t *testing.T) {
Address: "addr1",
}
response := &readable.UnspentOutputsSummary{
HeadOutputs: readable.UnspentOutputs{usOut, usOut},
OutgoingOutputs: readable.UnspentOutputs{usOut, usOut},
HeadOutputs: readable.UnspentOutputs{usOut, usOut},
}

global_mock.On("OutputsForAddresses", []string{"addr1"}).Return(response, nil)

addr := &SkycoinAddress{address: "addr1"}
Expand Down

0 comments on commit 7d6ce3a

Please sign in to comment.