DRY file loading

This commit is contained in:
Taylor Gerring
2015-06-10 18:11:30 -04:00
parent ac0637c413
commit 6ff956394a
5 changed files with 42 additions and 58 deletions

View File

@ -37,7 +37,7 @@ func RunTransactionTests(file string) error {
}
bt := make(map[string]TransactionTest)
if err := LoadJSON(file, &bt); err != nil {
if err := readTestFile(file, &bt); err != nil {
return err
}