Skip to content

Commit

Permalink
fixut: init the runner before running the cases of PevmProcessor, oth…
Browse files Browse the repository at this point in the history
…erwise it will stuck forever because of a nil runner
  • Loading branch information
andyzhang2023 committed Oct 25, 2024
1 parent 8fbb333 commit 3fd45f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/parallel_state_scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io/ioutil"
"math/big"
"os"
"runtime"
"sync"
"sync/atomic"
"testing"
Expand Down Expand Up @@ -81,6 +82,10 @@ func (mt *mockTx) To() int {
return int(mt.req.value)
}

func init() {
initParallelRunner(runtime.GOMAXPROCS(0))
}

func (mt *mockTx) execute(req *PEVMTxRequest) *PEVMTxResult {
result := &PEVMTxResult{
txReq: req,
Expand Down

0 comments on commit 3fd45f3

Please sign in to comment.