@@ -78,7 +78,7 @@ func TestSecondaryBatcherSimple(t *testing.T) {
7878 reqs := make (arma_types.BatchedRequests , 1 )
7979 reqs = append (reqs , req )
8080
81- batch := arma_types .NewSimpleBatch (0 , 0 , 1 , reqs )
81+ batch := arma_types .NewSimpleBatch (0 , 1 , 0 , reqs , 0 )
8282
8383 batchPuller := & mocks.FakeBatchesPuller {}
8484 batchChan := make (chan arma_types.Batch )
@@ -105,7 +105,7 @@ func TestSecondaryBatcherSimple(t *testing.T) {
105105 return ledger .AppendCallCount () == 1
106106 }, 10 * time .Second , 10 * time .Millisecond )
107107
108- batch = arma_types .NewSimpleBatch (1 , 0 , 1 , reqs )
108+ batch = arma_types .NewSimpleBatch (0 , 1 , 1 , reqs , 0 )
109109 batchChan <- batch
110110 require .Eventually (t , func () bool {
111111 return ledger .AppendCallCount () == 2
@@ -146,7 +146,7 @@ func TestPrimaryChangeToSecondary(t *testing.T) {
146146 stateProvider .GetLatestStateChanReturns (stateChan )
147147 batcher .StateProvider = stateProvider
148148
149- batch := arma_types .NewSimpleBatch (0 , 0 , 2 , reqs )
149+ batch := arma_types .NewSimpleBatch (0 , 2 , 0 , reqs , 0 )
150150
151151 batchPuller := & mocks.FakeBatchesPuller {}
152152 batchChan := make (chan arma_types.Batch )
@@ -228,7 +228,7 @@ func TestSecondaryChangeToPrimary(t *testing.T) {
228228 stateProvider .GetLatestStateChanReturns (stateChan )
229229 batcher .StateProvider = stateProvider
230230
231- batch := arma_types .NewSimpleBatch (0 , 0 , 1 , reqs )
231+ batch := arma_types .NewSimpleBatch (0 , 1 , 0 , reqs , 0 )
232232
233233 batchPuller := & mocks.FakeBatchesPuller {}
234234 batchChan := make (chan arma_types.Batch )
@@ -306,7 +306,7 @@ func TestSecondaryChangeToSecondary(t *testing.T) {
306306 reqs := make (arma_types.BatchedRequests , 1 )
307307 reqs = append (reqs , req )
308308
309- batch := arma_types .NewSimpleBatch (0 , 0 , 1 , reqs )
309+ batch := arma_types .NewSimpleBatch (0 , 1 , 0 , reqs , 0 )
310310
311311 batchPuller := & mocks.FakeBatchesPuller {}
312312 batchChan := make (chan arma_types.Batch )
@@ -363,7 +363,7 @@ func TestSecondaryChangeToSecondary(t *testing.T) {
363363 return batchPuller .StopCallCount () == 1
364364 }, 10 * time .Second , 10 * time .Millisecond )
365365
366- batch = arma_types .NewSimpleBatch (0 , 0 , 2 , reqs )
366+ batch = arma_types .NewSimpleBatch (0 , 2 , 0 , reqs , 0 )
367367 batchChan <- batch
368368 require .Eventually (t , func () bool {
369369 return ledger .AppendCallCount () == 2
@@ -518,7 +518,7 @@ func TestPrimaryWaitingAndTermChange(t *testing.T) {
518518 stateProvider .GetLatestStateChanReturns (stateChan )
519519 batcher .StateProvider = stateProvider
520520
521- batch := arma_types .NewSimpleBatch (0 , 0 , 2 , reqs )
521+ batch := arma_types .NewSimpleBatch (0 , 2 , 0 , reqs , 0 )
522522
523523 batchPuller := & mocks.FakeBatchesPuller {}
524524 batchChan := make (chan arma_types.Batch )
@@ -598,7 +598,7 @@ func TestResubmitPending(t *testing.T) {
598598 stateProvider .GetLatestStateChanReturns (stateChan )
599599 batcher .StateProvider = stateProvider
600600
601- batch := arma_types .NewSimpleBatch (0 , 0 , 1 , reqs )
601+ batch := arma_types .NewSimpleBatch (0 , 1 , 0 , reqs , 0 )
602602
603603 batchPuller := & mocks.FakeBatchesPuller {}
604604 batchChan := make (chan arma_types.Batch )
@@ -692,7 +692,7 @@ func TestVerifyBatch(t *testing.T) {
692692 reqs := make (arma_types.BatchedRequests , 1 )
693693 reqs = append (reqs , req )
694694
695- batch := arma_types .NewSimpleBatch (0 , 0 , 1 , reqs )
695+ batch := arma_types .NewSimpleBatch (0 , 1 , 0 , reqs , 0 )
696696
697697 batchPuller := & mocks.FakeBatchesPuller {}
698698 batchChan := make (chan arma_types.Batch )
@@ -710,25 +710,25 @@ func TestVerifyBatch(t *testing.T) {
710710 return ledger .AppendCallCount () == 1
711711 }, 10 * time .Second , 10 * time .Millisecond )
712712
713- batch = arma_types .NewSimpleBatch (0 , 0 , 2 , reqs )
713+ batch = arma_types .NewSimpleBatch (0 , 2 , 0 , reqs , 0 )
714714 batchChan <- batch
715715 require .Eventually (t , func () bool {
716716 return complainer .ComplainCallCount () == 1
717717 }, 10 * time .Second , 10 * time .Millisecond )
718718
719- batch = arma_types .NewSimpleBatch (0 , 1 , 1 , reqs )
719+ batch = arma_types .NewSimpleBatch (1 , 1 , 0 , reqs , 0 )
720720 batchChan <- batch
721721 require .Eventually (t , func () bool {
722722 return complainer .ComplainCallCount () == 2
723723 }, 10 * time .Second , 10 * time .Millisecond )
724724
725- batch = arma_types .NewSimpleBatch (2 , 0 , 1 , reqs )
725+ batch = arma_types .NewSimpleBatch (0 , 1 , 2 , reqs , 0 )
726726 batchChan <- batch
727727 require .Eventually (t , func () bool {
728728 return complainer .ComplainCallCount () == 3
729729 }, 10 * time .Second , 10 * time .Millisecond )
730730
731- batch = arma_types .NewSimpleBatch (0 , 0 , 1 , nil )
731+ batch = arma_types .NewSimpleBatch (0 , 1 , 0 , nil , 0 )
732732 batchChan <- batch
733733 require .Eventually (t , func () bool {
734734 return complainer .ComplainCallCount () == 4
@@ -741,7 +741,7 @@ func TestVerifyBatch(t *testing.T) {
741741 }, 10 * time .Second , 10 * time .Millisecond )
742742 verifier .VerifyBatchedRequestsReturns (nil )
743743
744- batch = arma_types .NewSimpleBatch (1 , 0 , 1 , reqs )
744+ batch = arma_types .NewSimpleBatch (0 , 1 , 1 , reqs , 0 )
745745 batchChan <- batch
746746 require .Eventually (t , func () bool {
747747 return ledger .AppendCallCount () == 2
0 commit comments