Skip to content

Commit

Permalink
tests: ignore or remove bsc failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CaraWang committed Sep 19, 2024
1 parent 32f59bd commit 06c5646
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 438 deletions.
94 changes: 0 additions & 94 deletions tests/block_test.go

This file was deleted.

20 changes: 7 additions & 13 deletions tests/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,10 @@ import (
)

var (
baseDir = filepath.Join(".", "testdata")
blockTestDir = filepath.Join(baseDir, "BlockchainTests")
stateTestDir = filepath.Join(baseDir, "GeneralStateTests")
legacyStateTestDir = filepath.Join(baseDir, "LegacyTests", "Constantinople", "GeneralStateTests")
transactionTestDir = filepath.Join(baseDir, "TransactionTests")
rlpTestDir = filepath.Join(baseDir, "RLPTests")
difficultyTestDir = filepath.Join(baseDir, "BasicTests")
executionSpecBlockchainTestDir = filepath.Join(".", "spec-tests", "fixtures", "blockchain_tests")
executionSpecStateTestDir = filepath.Join(".", "spec-tests", "fixtures", "state_tests")
benchmarksDir = filepath.Join(".", "evm-benchmarks", "benchmarks")
baseDir = filepath.Join(".", "testdata")
transactionTestDir = filepath.Join(baseDir, "TransactionTests")
rlpTestDir = filepath.Join(baseDir, "RLPTests")
difficultyTestDir = filepath.Join(baseDir, "BasicTests")
)

func readJSON(reader io.Reader, value interface{}) error {
Expand Down Expand Up @@ -109,9 +103,9 @@ type testFailure struct {
}

// skipShortMode skips tests matching when the -short flag is used.
func (tm *testMatcher) slow(pattern string) {
tm.slowpat = append(tm.slowpat, regexp.MustCompile(pattern))
}
// func (tm *testMatcher) slow(pattern string) {
// tm.slowpat = append(tm.slowpat, regexp.MustCompile(pattern))
// }

// skipLoad skips JSON loading of tests matching the pattern.
func (tm *testMatcher) skipLoad(pattern string) {
Expand Down
Loading

0 comments on commit 06c5646

Please sign in to comment.