Переглянути джерело

Explicitly skip TransactionTests/tt10mbDataField.json

Gustav Simonsson 10 роки тому
батько
коміт
573bc3e05e
2 змінених файлів з 3 додано та 6 видалено
  1. 2 5
      tests/transaction_test.go
  2. 1 1
      tests/transaction_test_util.go

+ 2 - 5
tests/transaction_test.go

@@ -35,11 +35,9 @@ func TestWrongRLPTransactions(t *testing.T) {
 	}
 }
 
-/*
-
-Not working until it's fields are in HEX
-
+//Not working until it's fields are in HEX
 func Test10MBtx(t *testing.T) {
+	t.Skip("Skipped in lieu of HEX encoding fix in this file.")
 	notWorking := make(map[string]bool, 100)
 	var err error
 	err = RunTransactionTests("./files/TransactionTests/tt10mbDataField.json",
@@ -48,4 +46,3 @@ func Test10MBtx(t *testing.T) {
 		t.Fatal(err)
 	}
 }
-*/

+ 1 - 1
tests/transaction_test_util.go

@@ -80,7 +80,7 @@ func runTest(txTest TransactionTest) (err error) {
 			return nil
 		} else {
 			// RLP decoding works and validations pass (test FAIL)
-			return errors.New("Field validations failed after RLP decoding")
+			return fmt.Errorf("Field validations failed after RLP decoding: ", validationError)
 		}
 	}
 	return errors.New("Should not happen: verify RLP decoding and field validation")