diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-07 03:07:35 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-07 03:10:59 +0800 |
commit | 22b493a6ff3e9692676c17f8d766ff1117da9485 (patch) | |
tree | 3e39656fa5769b6bb36a07f21f5dc9a2c4566978 /core/chain_manager_test.go | |
parent | cd856cb2133d390758bb24b88fa3b538bb7bc306 (diff) | |
download | go-tangerine-22b493a6ff3e9692676c17f8d766ff1117da9485.tar go-tangerine-22b493a6ff3e9692676c17f8d766ff1117da9485.tar.gz go-tangerine-22b493a6ff3e9692676c17f8d766ff1117da9485.tar.bz2 go-tangerine-22b493a6ff3e9692676c17f8d766ff1117da9485.tar.lz go-tangerine-22b493a6ff3e9692676c17f8d766ff1117da9485.tar.xz go-tangerine-22b493a6ff3e9692676c17f8d766ff1117da9485.tar.zst go-tangerine-22b493a6ff3e9692676c17f8d766ff1117da9485.zip |
Fixed tests
Diffstat (limited to 'core/chain_manager_test.go')
-rw-r--r-- | core/chain_manager_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/chain_manager_test.go b/core/chain_manager_test.go index b562b677d..e78c2e980 100644 --- a/core/chain_manager_test.go +++ b/core/chain_manager_test.go @@ -257,9 +257,9 @@ func TestChainInsertions(t *testing.T) { } var eventMux event.TypeMux - chainMan := NewChainManager(db, &eventMux) + chainMan := NewChainManager(db, db, &eventMux) txPool := NewTxPool(&eventMux) - blockMan := NewBlockProcessor(db, txPool, chainMan, &eventMux) + blockMan := NewBlockProcessor(db, nil, txPool, chainMan, &eventMux) chainMan.SetProcessor(blockMan) const max = 2 @@ -303,9 +303,9 @@ func TestChainMultipleInsertions(t *testing.T) { } } var eventMux event.TypeMux - chainMan := NewChainManager(db, &eventMux) + chainMan := NewChainManager(db, db, &eventMux) txPool := NewTxPool(&eventMux) - blockMan := NewBlockProcessor(db, txPool, chainMan, &eventMux) + blockMan := NewBlockProcessor(db, nil, txPool, chainMan, &eventMux) chainMan.SetProcessor(blockMan) done := make(chan bool, max) for i, chain := range chains { @@ -332,7 +332,7 @@ func TestGetAncestors(t *testing.T) { db, _ := ethdb.NewMemDatabase() var eventMux event.TypeMux - chainMan := NewChainManager(db, &eventMux) + chainMan := NewChainManager(db, db, &eventMux) chain, err := loadChain("valid1", t) if err != nil { fmt.Println(err) |