arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/test/txsets/tilsets_test.go
test/txsets/tilsets_test.goRaw
 1package txsets
 2
 3import (
 4	"testing"
 5
 6	"github.com/hermeznetwork/hermez-node/common"
 7	"github.com/hermeznetwork/hermez-node/test/til"
 8	"github.com/stretchr/testify/assert"
 9)
10
11func TestCompileSetsBase(t *testing.T) {
12	tc := til.NewContext(0, common.RollupConstMaxL1UserTx)
13	_, err := tc.GenerateBlocks(SetBlockchain0)
14	assert.NoError(t, err)
15	_, err = tc.GeneratePoolL2Txs(SetPool0)
16	assert.NoError(t, err)
17}
18
19func TestCompileSetsMinimumFlow(t *testing.T) {
20	// minimum flow
21	tc := til.NewContext(0, common.RollupConstMaxL1UserTx)
22	_, err := tc.GenerateBlocks(SetBlockchainMinimumFlow0)
23	assert.NoError(t, err)
24	_, err = tc.GeneratePoolL2Txs(SetPoolL2MinimumFlow0)
25	assert.NoError(t, err)
26}