mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
f7c7c109ce
TestExecutionSpec takes significant time to run (12s for me), and frequently timeouts on Windows PR builds: https://github.com/ledgerwatch/erigon/actions/runs/5974942021/job/16235304043?pr=8077 Same with bor.TestMiningBenchmark: https://github.com/ledgerwatch/erigon/actions/runs/6024465717/job/16343219099 Move it to the integration workflow where the timeout is longer.
39 lines
930 B
Go
39 lines
930 B
Go
//go:build integration
|
|
|
|
package tests
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/ledgerwatch/erigon/eth/ethconfig"
|
|
"github.com/ledgerwatch/log/v3"
|
|
)
|
|
|
|
func TestExecutionSpec(t *testing.T) {
|
|
if ethconfig.EnableHistoryV3InTest {
|
|
t.Skip("fix me in e3 please")
|
|
}
|
|
|
|
defer log.Root().SetHandler(log.Root().GetHandler())
|
|
log.Root().SetHandler(log.LvlFilterHandler(log.LvlError, log.StderrHandler))
|
|
|
|
bt := new(testMatcher)
|
|
|
|
dir := filepath.Join(".", "execution-spec-tests")
|
|
|
|
// TODO(yperbasis): fix me
|
|
bt.skipLoad(`^cancun/eip4844_blobs/blob_txs/`)
|
|
bt.skipLoad(`^cancun/eip4844_blobs/blob_txs_full/`)
|
|
bt.skipLoad(`^cancun/eip4844_blobs/excess_blob_gas/`)
|
|
|
|
checkStateRoot := true
|
|
|
|
bt.walk(t, dir, func(t *testing.T, name string, test *BlockTest) {
|
|
// import pre accounts & construct test genesis block & state root
|
|
if err := bt.checkFailure(t, test.Run(t, checkStateRoot)); err != nil {
|
|
t.Error(err)
|
|
}
|
|
})
|
|
}
|