mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-29 08:03:48 +00:00
[Bug fix] Use parallel processor in unit test
This commit is contained in:
parent
9795a287d0
commit
55962e16c6
1 changed files with 2 additions and 2 deletions
|
|
@ -236,7 +236,7 @@ func TestStateProcessorErrors(t *testing.T) {
|
|||
}
|
||||
genesis = gspec.MustCommit(db)
|
||||
blockchain, _ = NewBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{}, nil, nil, nil)
|
||||
parallelBlockchain, _ = NewBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{}, nil, nil, nil)
|
||||
parallelBlockchain, _ = NewParallelBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{ParallelEnable: true, ParallelSpeculativeProcesses: 8}, nil, nil, nil)
|
||||
)
|
||||
defer blockchain.Stop()
|
||||
defer parallelBlockchain.Stop()
|
||||
|
|
@ -281,7 +281,7 @@ func TestStateProcessorErrors(t *testing.T) {
|
|||
}
|
||||
genesis = gspec.MustCommit(db)
|
||||
blockchain, _ = NewBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{}, nil, nil, nil)
|
||||
parallelBlockchain, _ = NewBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{}, nil, nil, nil)
|
||||
parallelBlockchain, _ = NewParallelBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{ParallelEnable: true, ParallelSpeculativeProcesses: 8}, nil, nil, nil)
|
||||
)
|
||||
defer blockchain.Stop()
|
||||
defer parallelBlockchain.Stop()
|
||||
|
|
|
|||
Loading…
Reference in a new issue