aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-29 21:09:37 +0800
committerobscuren <geffobscura@gmail.com>2015-04-29 21:27:04 +0800
commitc9300458344e9024b4d18171f87b7e0edb3b6859 (patch)
treec9869eaec4f0683f7b7303ab7a9e681123349bcd /core
parentdfbf580354711af3b542b8c6f5608852d7b90ce3 (diff)
downloadgo-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.tar.gz
go-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.tar.zst
go-tangerine-c9300458344e9024b4d18171f87b7e0edb3b6859.zip
core: fixed tetst to reflect (int, error) return by insertChain
Diffstat (limited to 'core')
-rw-r--r--core/chain_manager_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/chain_manager_test.go b/core/chain_manager_test.go
index a88afd7c8..8d1b7865d 100644
--- a/core/chain_manager_test.go
+++ b/core/chain_manager_test.go
@@ -44,7 +44,7 @@ func testFork(t *testing.T, bman *BlockProcessor, i, N int, f func(td1, td2 *big
// extend the fork
parent := bman2.bc.CurrentBlock()
chainB := makeChain(bman2, parent, N, db, ForkSeed)
- err = bman2.bc.InsertChain(chainB)
+ _, err = bman2.bc.InsertChain(chainB)
if err != nil {
t.Fatal("Insert chain error for fork:", err)
}
@@ -108,7 +108,7 @@ func loadChain(fn string, t *testing.T) (types.Blocks, error) {
}
func insertChain(done chan bool, chainMan *ChainManager, chain types.Blocks, t *testing.T) {
- err := chainMan.InsertChain(chain)
+ _, err := chainMan.InsertChain(chain)
if err != nil {
fmt.Println(err)
t.FailNow()