Fixed tests

This commit is contained in:
obscuren
2015-01-06 13:18:09 +01:00
parent 3b8725e0f5
commit 564f02aa2b
3 changed files with 7 additions and 7 deletions

View File

@ -71,7 +71,7 @@ func TestChainInsertions(t *testing.T) {
var eventMux event.TypeMux
chainMan := NewChainManager(&eventMux)
txPool := NewTxPool(&eventMux)
blockMan := NewBlockManager(txPool, chainMan, &eventMux)
blockMan := NewBlockProcessor(txPool, chainMan, &eventMux)
chainMan.SetProcessor(blockMan)
const max = 2
@ -115,7 +115,7 @@ func TestChainMultipleInsertions(t *testing.T) {
var eventMux event.TypeMux
chainMan := NewChainManager(&eventMux)
txPool := NewTxPool(&eventMux)
blockMan := NewBlockManager(txPool, chainMan, &eventMux)
blockMan := NewBlockProcessor(txPool, chainMan, &eventMux)
chainMan.SetProcessor(blockMan)
done := make(chan bool, max)
for i, chain := range chains {