mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
tests: run block and state subtests in parallel
This commit is contained in:
parent
92faf1bf7a
commit
20c9a7727b
1 changed files with 2 additions and 0 deletions
|
|
@ -59,6 +59,8 @@ func TestState(t *testing.T) {
|
||||||
key := fmt.Sprintf("%s/%d", subtest.Fork, subtest.Index)
|
key := fmt.Sprintf("%s/%d", subtest.Fork, subtest.Index)
|
||||||
name := name + "/" + key
|
name := name + "/" + key
|
||||||
t.Run(key, func(t *testing.T) {
|
t.Run(key, func(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
withTrace(t, test.gasLimit(subtest), func(vmconfig vm.Config) error {
|
withTrace(t, test.gasLimit(subtest), func(vmconfig vm.Config) error {
|
||||||
_, err := test.Run(subtest, vmconfig)
|
_, err := test.Run(subtest, vmconfig)
|
||||||
return st.checkFailure(t, name, err)
|
return st.checkFailure(t, name, err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue