diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-11 05:04:06 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-19 04:20:44 +0800 |
commit | ac0637c41332de1f49fb0955f4fbe0fb908a77d5 (patch) | |
tree | 9e87e69656cc317f300ba59692eeb525a230f0bf /tests/block_test.go | |
parent | b6d40a931286b4c998f58ad074db0a692aeace6e (diff) | |
download | go-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.tar.gz go-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.tar.zst go-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.zip |
More consistent test interfaces + test skipping
Diffstat (limited to 'tests/block_test.go')
-rw-r--r-- | tests/block_test.go | 50 |
1 files changed, 40 insertions, 10 deletions
diff --git a/tests/block_test.go b/tests/block_test.go index f1a92be49..9d21ba28d 100644 --- a/tests/block_test.go +++ b/tests/block_test.go @@ -6,38 +6,68 @@ import ( ) func TestBcValidBlockTests(t *testing.T) { - runBlockTestsInFile(filepath.Join(blockTestDir, "bcValidBlockTest.json"), []string{"SimpleTx3"}) + err := RunBlockTest(filepath.Join(blockTestDir, "bcValidBlockTest.json")) + if err != nil { + t.Fatal(err) + } } func TestBcUncleTests(t *testing.T) { - runBlockTestsInFile(filepath.Join(blockTestDir, "bcUncleTest.json"), []string{}) - runBlockTestsInFile(filepath.Join(blockTestDir, "bcBruncleTest.json"), []string{}) + err := RunBlockTest(filepath.Join(blockTestDir, "bcUncleTest.json")) + if err != nil { + t.Fatal(err) + } + err = RunBlockTest(filepath.Join(blockTestDir, "bcBruncleTest.json")) + if err != nil { + t.Fatal(err) + } } func TestBcUncleHeaderValidityTests(t *testing.T) { - runBlockTestsInFile(filepath.Join(blockTestDir, "bcUncleHeaderValiditiy.json"), []string{}) + err := RunBlockTest(filepath.Join(blockTestDir, "bcUncleHeaderValiditiy.json")) + if err != nil { + t.Fatal(err) + } } func TestBcInvalidHeaderTests(t *testing.T) { - runBlockTestsInFile(filepath.Join(blockTestDir, "bcInvalidHeaderTest.json"), []string{}) + err := RunBlockTest(filepath.Join(blockTestDir, "bcInvalidHeaderTest.json")) + if err != nil { + t.Fatal(err) + } } func TestBcInvalidRLPTests(t *testing.T) { - runBlockTestsInFile(filepath.Join(blockTestDir, "bcInvalidRLPTest.json"), []string{}) + err := RunBlockTest(filepath.Join(blockTestDir, "bcInvalidRLPTest.json")) + if err != nil { + t.Fatal(err) + } } func TestBcRPCAPITests(t *testing.T) { - runBlockTestsInFile(filepath.Join(blockTestDir, "bcRPC_API_Test.json"), []string{}) + err := RunBlockTest(filepath.Join(blockTestDir, "bcRPC_API_Test.json")) + if err != nil { + t.Fatal(err) + } } func TestBcForkBlockTests(t *testing.T) { - runBlockTestsInFile(filepath.Join(blockTestDir, "bcForkBlockTest.json"), []string{}) + err := RunBlockTest(filepath.Join(blockTestDir, "bcForkBlockTest.json")) + if err != nil { + t.Fatal(err) + } } func TestBcTotalDifficulty(t *testing.T) { - runBlockTestsInFile(filepath.Join(blockTestDir, "bcTotalDifficultyTest.json"), []string{}) + err := RunBlockTest(filepath.Join(blockTestDir, "bcTotalDifficultyTest.json")) + if err != nil { + t.Fatal(err) + } } func TestBcWallet(t *testing.T) { - runBlockTestsInFile(filepath.Join(blockTestDir, "bcWalletTest.json"), []string{}) + err := RunBlockTest(filepath.Join(blockTestDir, "bcWalletTest.json")) + if err != nil { + t.Fatal(err) + } } |