mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Feature/merge history l2 tables (#156)
* WIP rebase * Combine both SQL DBs * API and DB refactor
This commit is contained in:
@@ -27,7 +27,7 @@ func TestProcessTxs(t *testing.T) {
|
||||
instructions, err := parser.Parse()
|
||||
assert.Nil(t, err)
|
||||
|
||||
l1Txs, coordinatorL1Txs, poolL2Txs := test.GenerateTestTxs(t, instructions)
|
||||
l1Txs, coordinatorL1Txs, poolL2Txs, _ := test.GenerateTestTxs(t, instructions)
|
||||
assert.Equal(t, 29, len(l1Txs[0]))
|
||||
assert.Equal(t, 0, len(coordinatorL1Txs[0]))
|
||||
assert.Equal(t, 21, len(poolL2Txs[0]))
|
||||
@@ -57,7 +57,7 @@ func TestProcessTxsBatchByBatch(t *testing.T) {
|
||||
instructions, err := parser.Parse()
|
||||
assert.Nil(t, err)
|
||||
|
||||
l1Txs, coordinatorL1Txs, poolL2Txs := test.GenerateTestTxs(t, instructions)
|
||||
l1Txs, coordinatorL1Txs, poolL2Txs, _ := test.GenerateTestTxs(t, instructions)
|
||||
assert.Equal(t, 29, len(l1Txs[0]))
|
||||
assert.Equal(t, 0, len(coordinatorL1Txs[0]))
|
||||
assert.Equal(t, 21, len(poolL2Txs[0]))
|
||||
@@ -108,7 +108,7 @@ func TestZKInputsGeneration(t *testing.T) {
|
||||
instructions, err := parser.Parse()
|
||||
assert.Nil(t, err)
|
||||
|
||||
l1Txs, coordinatorL1Txs, poolL2Txs := test.GenerateTestTxs(t, instructions)
|
||||
l1Txs, coordinatorL1Txs, poolL2Txs, _ := test.GenerateTestTxs(t, instructions)
|
||||
assert.Equal(t, 29, len(l1Txs[0]))
|
||||
assert.Equal(t, 0, len(coordinatorL1Txs[0]))
|
||||
assert.Equal(t, 21, len(poolL2Txs[0]))
|
||||
|
||||
Reference in New Issue
Block a user