Skip to content

Commit 491dd49

Browse files
committed
Merge pull request #1928 from Gustav-Simonsson/common_tests
tests: update JSON files, add new wrappers
2 parents c43db8a + 145366c commit 491dd49

26 files changed

+21947
-4946
lines changed

tests/block_test.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ func TestBcForkBlockTests(t *testing.T) {
7777
}
7878
}
7979

80+
func TestBcForkStress(t *testing.T) {
81+
err := RunBlockTest(filepath.Join(blockTestDir, "bcForkStressTest.json"), BlockSkipTests)
82+
if err != nil {
83+
t.Fatal(err)
84+
}
85+
}
86+
8087
func TestBcTotalDifficulty(t *testing.T) {
8188
err := RunBlockTest(filepath.Join(blockTestDir, "bcTotalDifficultyTest.json"), BlockSkipTests)
8289
if err != nil {
@@ -105,3 +112,17 @@ func TestBcRandom(t *testing.T) {
105112
t.Fatal(err)
106113
}
107114
}
115+
116+
func TestBcMultiChain(t *testing.T) {
117+
err := RunBlockTest(filepath.Join(blockTestDir, "bcMultiChainTest.json"), BlockSkipTests)
118+
if err != nil {
119+
t.Fatal(err)
120+
}
121+
}
122+
123+
func TestBcState(t *testing.T) {
124+
err := RunBlockTest(filepath.Join(blockTestDir, "bcStateTest.json"), BlockSkipTests)
125+
if err != nil {
126+
t.Fatal(err)
127+
}
128+
}

tests/files/BlockchainTests/bcBlockGasLimitTest.json

Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.

tests/files/BlockchainTests/bcForkStressTest.json

Lines changed: 11573 additions & 0 deletions
Large diffs are not rendered by default.

tests/files/BlockchainTests/bcGasPricerTest.json

Lines changed: 1114 additions & 987 deletions
Large diffs are not rendered by default.

tests/files/BlockchainTests/bcInvalidHeaderTest.json

Lines changed: 232 additions & 114 deletions
Large diffs are not rendered by default.

tests/files/BlockchainTests/bcMultiChainTest.json

Lines changed: 3393 additions & 0 deletions
Large diffs are not rendered by default.

tests/files/BlockchainTests/bcRPC_API_Test.json

Lines changed: 220 additions & 220 deletions
Large diffs are not rendered by default.

tests/files/BlockchainTests/bcStateTest.json

Lines changed: 390 additions & 0 deletions
Large diffs are not rendered by default.

tests/files/BlockchainTests/bcTotalDifficultyTest.json

Lines changed: 2831 additions & 747 deletions
Large diffs are not rendered by default.

tests/files/BlockchainTests/bcUncleHeaderValiditiy.json

Lines changed: 630 additions & 393 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)