Skip to content

Commit

Permalink
tests: skip tests on windows 32bit CI (ethereum#28521)
Browse files Browse the repository at this point in the history
tests: skip half the blockchain- and state-tests on windows 32bit CI-tests
  • Loading branch information
holiman authored and Dergarcon committed Jan 31, 2024
1 parent 7fbf294 commit d44ec36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
package tests

import (
"math/rand"
"runtime"
"testing"

"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -49,6 +51,9 @@ func TestBlockchain(t *testing.T) {
bt.skipLoad(`.*randomStatetest94.json.*`)

bt.walk(t, blockTestDir, func(t *testing.T, name string, test *BlockTest) {
if runtime.GOARCH == "386" && runtime.GOOS == "windows" && rand.Int63()%2 == 0 {
t.Skip("test (randomly) skipped on 32-bit windows")
}
execBlockTest(t, bt, test)
})
// There is also a LegacyTests folder, containing blockchain tests generated
Expand Down
6 changes: 6 additions & 0 deletions tests/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ import (
"bytes"
"fmt"
"math/big"
"math/rand"
"os"
"path/filepath"
"reflect"
"runtime"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -76,6 +78,10 @@ func TestState(t *testing.T) {
benchmarksDir,
} {
st.walk(t, dir, func(t *testing.T, name string, test *StateTest) {
if runtime.GOARCH == "386" && runtime.GOOS == "windows" && rand.Int63()%2 == 0 {
t.Skip("test (randomly) skipped on 32-bit windows")
return
}
for _, subtest := range test.Subtests() {
subtest := subtest
key := fmt.Sprintf("%s/%d", subtest.Fork, subtest.Index)
Expand Down

0 comments on commit d44ec36

Please sign in to comment.