aboutsummaryrefslogtreecommitdiffstats
path: root/tests/transaction_test.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-06-11 00:34:38 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-06-19 04:13:42 +0800
commite82100367f794856a8807b5fcfe9f0043902a294 (patch)
treebd465d3867a3d411f005dd3fb9bb0c909921b043 /tests/transaction_test.go
parenta67a15528aa5da902a17d49f5dad19db3975032a (diff)
downloaddexon-e82100367f794856a8807b5fcfe9f0043902a294.tar.gz
dexon-e82100367f794856a8807b5fcfe9f0043902a294.tar.zst
dexon-e82100367f794856a8807b5fcfe9f0043902a294.zip
Fix paths
Diffstat (limited to 'tests/transaction_test.go')
-rw-r--r--tests/transaction_test.go9
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)