diff options
Diffstat (limited to 'tests/transaction_test.go')
-rw-r--r-- | tests/transaction_test.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/transaction_test.go b/tests/transaction_test.go index 7ae1c8788..05942d3bf 100644 --- a/tests/transaction_test.go +++ b/tests/transaction_test.go @@ -1,9 +1,12 @@ package tests import ( + "path/filepath" "testing" ) +var transactionTestDir = filepath.Join(baseDir, "TransactionTests") + func TestTransactions(t *testing.T) { notWorking := make(map[string]bool, 100) @@ -17,7 +20,7 @@ func TestTransactions(t *testing.T) { } var err error - err = RunTransactionTests("./files/TransactionTests/ttTransactionTest.json", + err = RunTransactionTests(filepath.Join(transactionTestDir, "ttTransactionTest.json"), notWorking) if err != nil { t.Fatal(err) @@ -27,7 +30,7 @@ func TestTransactions(t *testing.T) { func TestWrongRLPTransactions(t *testing.T) { notWorking := make(map[string]bool, 100) var err error - err = RunTransactionTests("./files/TransactionTests/ttWrongRLPTransaction.json", + err = RunTransactionTests(filepath.Join(transactionTestDir, "ttWrongRLPTransaction.json"), notWorking) if err != nil { t.Fatal(err) @@ -37,7 +40,7 @@ func TestWrongRLPTransactions(t *testing.T) { func Test10MBtx(t *testing.T) { notWorking := make(map[string]bool, 100) var err error - err = RunTransactionTests("./files/TransactionTests/tt10mbDataField.json", + err = RunTransactionTests(filepath.Join(transactionTestDir, "tt10mbDataField.json"), notWorking) if err != nil { t.Fatal(err) |