mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
tests: avoid uselessly repeat failing tests
This commit is contained in:
parent
c311498c01
commit
88f910bb0a
1 changed files with 6 additions and 2 deletions
|
|
@ -64,8 +64,8 @@ func TestExecutionSpec(t *testing.T) {
|
|||
bt := new(testMatcher)
|
||||
|
||||
// cancun tests are not complete yet
|
||||
bt.skipLoad(`^cancun/`)
|
||||
bt.skipLoad(`-fork=Cancun`)
|
||||
//bt.skipLoad(`^cancun/`)
|
||||
//bt.skipLoad(`-fork=Cancun`)
|
||||
|
||||
bt.walk(t, executionSpecDir, func(t *testing.T, name string, test *BlockTest) {
|
||||
execBlockTest(t, bt, test)
|
||||
|
|
@ -75,14 +75,18 @@ func TestExecutionSpec(t *testing.T) {
|
|||
func execBlockTest(t *testing.T, bt *testMatcher, test *BlockTest) {
|
||||
if err := bt.checkFailure(t, test.Run(false, rawdb.HashScheme, nil)); err != nil {
|
||||
t.Errorf("test in hash mode without snapshotter failed: %v", err)
|
||||
return
|
||||
}
|
||||
if err := bt.checkFailure(t, test.Run(true, rawdb.HashScheme, nil)); err != nil {
|
||||
t.Errorf("test in hash mode with snapshotter failed: %v", err)
|
||||
return
|
||||
}
|
||||
if err := bt.checkFailure(t, test.Run(false, rawdb.PathScheme, nil)); err != nil {
|
||||
t.Errorf("test in path mode without snapshotter failed: %v", err)
|
||||
return
|
||||
}
|
||||
if err := bt.checkFailure(t, test.Run(true, rawdb.PathScheme, nil)); err != nil {
|
||||
t.Errorf("test in path mode with snapshotter failed: %v", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue