diff options
Diffstat (limited to 'data/transactions/logic/fields_test.go')
-rw-r--r-- | data/transactions/logic/fields_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/data/transactions/logic/fields_test.go b/data/transactions/logic/fields_test.go index e88f3820f..4a62d31cf 100644 --- a/data/transactions/logic/fields_test.go +++ b/data/transactions/logic/fields_test.go @@ -23,10 +23,12 @@ import ( "github.com/stretchr/testify/require" "github.com/algorand/go-algorand/data/basics" + "github.com/algorand/go-algorand/data/transactions/logictest" "github.com/algorand/go-algorand/test/partitiontest" ) func TestArrayFields(t *testing.T) { + partitiontest.PartitionTest(t) require.Equal(t, len(TxnaFieldNames), len(TxnaFieldTypes)) require.Equal(t, len(txnaFieldSpecByField), len(TxnaFieldTypes)) } @@ -45,7 +47,7 @@ func TestGlobalFieldsVersions(t *testing.T) { } require.Greater(t, len(fields), 1) - ledger := makeTestLedger(nil) + ledger := logictest.MakeLedger(nil) for _, field := range fields { text := fmt.Sprintf("global %s", field.field.String()) // check assembler fails if version before introduction @@ -109,7 +111,7 @@ func TestTxnFieldVersions(t *testing.T) { } txnaVersion := uint64(appsEnabledVersion) - ledger := makeTestLedger(nil) + ledger := logictest.MakeLedger(nil) txn := makeSampleTxn() // We'll reject too early if we have a nonzero RekeyTo, because that // field must be zero for every txn in the group if this is an old |