diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-06 20:18:09 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-06 20:18:09 +0800 |
commit | 564f02aa2b1188a2a736a9345f2afaa13e50ef45 (patch) | |
tree | 448e8a747e2892f9930c71bf3202dae402a7ff6c /core | |
parent | 3b8725e0f5622733dcb6c3ec142a83ddbb94bd6c (diff) | |
download | go-tangerine-564f02aa2b1188a2a736a9345f2afaa13e50ef45.tar go-tangerine-564f02aa2b1188a2a736a9345f2afaa13e50ef45.tar.gz go-tangerine-564f02aa2b1188a2a736a9345f2afaa13e50ef45.tar.bz2 go-tangerine-564f02aa2b1188a2a736a9345f2afaa13e50ef45.tar.lz go-tangerine-564f02aa2b1188a2a736a9345f2afaa13e50ef45.tar.xz go-tangerine-564f02aa2b1188a2a736a9345f2afaa13e50ef45.tar.zst go-tangerine-564f02aa2b1188a2a736a9345f2afaa13e50ef45.zip |
Fixed tests
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager_test.go | 4 | ||||
-rw-r--r-- | core/transaction_pool_test.go | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/chain_manager_test.go b/core/chain_manager_test.go index 2ed3c6c9e..6c66961b0 100644 --- a/core/chain_manager_test.go +++ b/core/chain_manager_test.go @@ -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 { diff --git a/core/transaction_pool_test.go b/core/transaction_pool_test.go index e77d7a1ae..2e1debfbe 100644 --- a/core/transaction_pool_test.go +++ b/core/transaction_pool_test.go @@ -55,7 +55,7 @@ func TestAddInvalidTx(t *testing.T) { func TestRemoveSet(t *testing.T) { pool, _ := setup() tx1 := transaction() - pool.pool.Add(tx1) + pool.addTx(tx1) pool.RemoveSet(types.Transactions{tx1}) if pool.Size() > 0 { t.Error("expected pool size to be 0") @@ -65,7 +65,7 @@ func TestRemoveSet(t *testing.T) { func TestRemoveInvalid(t *testing.T) { pool, key := setup() tx1 := transaction() - pool.pool.Add(tx1) + pool.addTx(tx1) pool.RemoveInvalid(stateQuery{}) if pool.Size() > 0 { t.Error("expected pool size to be 0") @@ -73,7 +73,7 @@ func TestRemoveInvalid(t *testing.T) { tx1.SetNonce(1) tx1.SignECDSA(key) - pool.pool.Add(tx1) + pool.addTx(tx1) pool.RemoveInvalid(stateQuery{}) if pool.Size() != 1 { t.Error("expected pool size to be 1, is", pool.Size()) |