Skip to content

Commit

Permalink
Strongerrunner (#12602)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvovk authored Nov 6, 2024
1 parent 9d27079 commit 5f65bb8
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
os:
- ubuntu-22.04
- macos-14
- ubuntu-latest-erigontests-large
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -37,7 +38,7 @@ jobs:
run: sudo apt update && sudo apt install build-essential

- name: test-integration
run: make test-integration
run: GOGC=50 make test-integration

tests-windows:
strategy:
Expand Down
1 change: 1 addition & 0 deletions tests/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func TestBlockchain(t *testing.T) {
checkStateRoot := true

bt.walk(t, blockTestDir, func(t *testing.T, name string, test *BlockTest) {
t.Parallel()
// import pre accounts & construct test genesis block & state root
if err := bt.checkFailure(t, test.Run(t, checkStateRoot)); err != nil {
t.Error(err)
Expand Down
2 changes: 0 additions & 2 deletions tests/difficulty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
)

func TestDifficulty(t *testing.T) {
//t.Parallel()

dt := new(testMatcher)

dt.walk(t, difficultyTestDir, func(t *testing.T, name string, superTest map[string]json.RawMessage) {
Expand Down
1 change: 1 addition & 0 deletions tests/exec_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func TestExecutionSpec(t *testing.T) {
checkStateRoot := true

bt.walk(t, dir, func(t *testing.T, name string, test *BlockTest) {
t.Parallel()
// import pre accounts & construct test genesis block & state root
if err := bt.checkFailure(t, test.Run(t, checkStateRoot)); err != nil {
t.Error(err)
Expand Down
2 changes: 0 additions & 2 deletions tests/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ func (tm *testMatcher) runTestFile(t *testing.T, path, name string, runTest inte
t.Skip("Skipped by whitelist")
}
}
//t.Parallel()

// Load the file as map[string]<testType>.
m := makeMapFromTestFunc(runTest)
Expand Down Expand Up @@ -289,7 +288,6 @@ func runTestFunc(runTest interface{}, t *testing.T, name string, m reflect.Value
}

func TestMatcherWhitelist(t *testing.T) {
//t.Parallel()
tm := new(testMatcher)
tm.whitelist("invalid*")
tm.walk(t, rlpTestDir, func(t *testing.T, name string, test *RLPTest) {
Expand Down
1 change: 0 additions & 1 deletion tests/rlp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
)

func TestRLP(t *testing.T) {
//t.Parallel()
tm := new(testMatcher)
tm.walk(t, rlpTestDir, func(t *testing.T, name string, test *RLPTest) {
if err := tm.checkFailure(t, test.Run()); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tests/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ import (
)

func TestState(t *testing.T) {
t.Parallel()
defer log.Root().SetHandler(log.Root().GetHandler())
log.Root().SetHandler(log.LvlFilterHandler(log.LvlError, log.StderrHandler))
if runtime.GOOS == "windows" {
t.Skip("fix me on win please") // it's too slow on win and stops on macos, need generally improve speed of this tests
}
//t.Parallel()

st := new(testMatcher)

Expand Down
3 changes: 1 addition & 2 deletions tests/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
)

func TestTransaction(t *testing.T) {
//t.Parallel()

txt := new(testMatcher)

// We don't allow more than uint64 in gas amount
Expand All @@ -38,6 +36,7 @@ func TestTransaction(t *testing.T) {
txt.skipLoad("^ttGasLimit/TransactionWithGasLimitxPriceOverflow.json")

txt.walk(t, transactionTestDir, func(t *testing.T, name string, test *TransactionTest) {
t.Parallel()
cfg := params.MainnetChainConfig
if err := txt.checkFailure(t, test.Run(cfg.ChainID)); err != nil {
t.Error(err)
Expand Down

0 comments on commit 5f65bb8

Please sign in to comment.