Skip to content

Commit c5b7cfa

Browse files
authored
tests: skip tests on windows 32bit CI (ethereum#28521)
tests: skip half the blockchain- and state-tests on windows 32bit CI-tests
1 parent 2391fbc commit c5b7cfa

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/block_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
package tests
1818

1919
import (
20+
"math/rand"
21+
"runtime"
2022
"testing"
2123

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

5153
bt.walk(t, blockTestDir, func(t *testing.T, name string, test *BlockTest) {
54+
if runtime.GOARCH == "386" && runtime.GOOS == "windows" && rand.Int63()%2 == 0 {
55+
t.Skip("test (randomly) skipped on 32-bit windows")
56+
}
5257
execBlockTest(t, bt, test)
5358
})
5459
// There is also a LegacyTests folder, containing blockchain tests generated

tests/state_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ import (
2121
"bytes"
2222
"fmt"
2323
"math/big"
24+
"math/rand"
2425
"os"
2526
"path/filepath"
2627
"reflect"
28+
"runtime"
2729
"strings"
2830
"testing"
2931
"time"
@@ -76,6 +78,10 @@ func TestState(t *testing.T) {
7678
benchmarksDir,
7779
} {
7880
st.walk(t, dir, func(t *testing.T, name string, test *StateTest) {
81+
if runtime.GOARCH == "386" && runtime.GOOS == "windows" && rand.Int63()%2 == 0 {
82+
t.Skip("test (randomly) skipped on 32-bit windows")
83+
return
84+
}
7985
for _, subtest := range test.Subtests() {
8086
subtest := subtest
8187
key := fmt.Sprintf("%s/%d", subtest.Fork, subtest.Index)

0 commit comments

Comments
 (0)