tests: update to latest tests (#22290)
This updates the consensus tests to commit 31d6630 and adds support for access list transactions in the test runner. Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
committed by
GitHub
parent
5a81dd97d5
commit
cd316d7c71
@ -25,7 +25,11 @@ func TestBlockchain(t *testing.T) {
|
||||
|
||||
bt := new(testMatcher)
|
||||
// General state tests are 'exported' as blockchain tests, but we can run them natively.
|
||||
bt.skipLoad(`^GeneralStateTests/`)
|
||||
// For speedier CI-runs, the line below can be uncommented, so those are skipped.
|
||||
// For now, in hardfork-times (Berlin), we run the tests both as StateTests and
|
||||
// as blockchain tests, since the latter also covers things like receipt root
|
||||
//bt.skipLoad(`^GeneralStateTests/`)
|
||||
|
||||
// Skip random failures due to selfish mining test
|
||||
bt.skipLoad(`.*bcForgedTest/bcForkUncle\.json`)
|
||||
|
||||
@ -43,15 +47,7 @@ func TestBlockchain(t *testing.T) {
|
||||
// test takes a lot for time and goes easily OOM because of sha3 calculation on a huge range,
|
||||
// using 4.6 TGas
|
||||
bt.skipLoad(`.*randomStatetest94.json.*`)
|
||||
|
||||
bt.walk(t, blockTestDir, func(t *testing.T, name string, test *BlockTest) {
|
||||
if test.json.Network == "Berlin" {
|
||||
// Our current berlin-tests were generated using YOLOv2 rules, hence a lot of them
|
||||
// fail when berlin is defined as YOLOv3. We skip those, until they've been
|
||||
// regenerated and re-imported
|
||||
// TODO (@holiman)
|
||||
return
|
||||
}
|
||||
if err := bt.checkFailure(t, name+"/trie", test.Run(false)); err != nil {
|
||||
t.Errorf("test without snapshotter failed: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user