@@ -20,7 +20,6 @@ import (
2020 "os"
2121 "reflect"
2222 "testing"
23- "time"
2423
2524 "github.com/stretchr/testify/require"
2625
@@ -65,7 +64,7 @@ func TestBlockAssemblerPipeline(t *testing.T) {
6564
6665 round := player .Round
6766 period := player .Period
68- testBlockFactory , err := factory .AssembleBlock (player .Round , time . Now (). Add ( time . Minute ) )
67+ testBlockFactory , err := factory .AssembleBlock (player .Round )
6968 require .NoError (t , err , "Could not generate a proposal for round %d: %v" , round , err )
7069
7170 accountIndex := 0
@@ -133,7 +132,7 @@ func TestBlockAssemblerBind(t *testing.T) {
133132
134133 player , _ , accounts , factory , ledger := testSetup (0 )
135134
136- testBlockFactory , err := factory .AssembleBlock (player .Round , time . Now (). Add ( time . Minute ) )
135+ testBlockFactory , err := factory .AssembleBlock (player .Round )
137136 require .NoError (t , err , "Could not generate a proposal for round %d: %v" , player .Round , err )
138137
139138 accountIndex := 0
@@ -201,7 +200,7 @@ func TestBlockAssemblerAuthenticator(t *testing.T) {
201200
202201 player , _ , accounts , factory , ledger := testSetup (0 )
203202
204- testBlockFactory , err := factory .AssembleBlock (player .Round , time . Now (). Add ( time . Minute ) )
203+ testBlockFactory , err := factory .AssembleBlock (player .Round )
205204 require .NoError (t , err , "Could not generate a proposal for round %d: %v" , player .Round , err )
206205 accountIndex := 0
207206 proposalPayload , _ , _ := proposalForBlock (accounts .addresses [accountIndex ], accounts .vrfs [accountIndex ], testBlockFactory , player .Period , ledger )
@@ -267,7 +266,7 @@ func TestBlockAssemblerTrim(t *testing.T) {
267266
268267 player , _ , accounts , factory , ledger := testSetup (0 )
269268
270- testBlockFactory , err := factory .AssembleBlock (player .Round , time . Now (). Add ( time . Minute ) )
269+ testBlockFactory , err := factory .AssembleBlock (player .Round )
271270 require .NoError (t , err , "Could not generate a proposal for round %d: %v" , player .Round , err )
272271 accountIndex := 0
273272 proposalPayload , _ , _ := proposalForBlock (accounts .addresses [accountIndex ], accounts .vrfs [accountIndex ], testBlockFactory , player .Period , ledger )
@@ -340,7 +339,7 @@ func TestProposalStoreT(t *testing.T) {
340339
341340 player , _ , accounts , factory , ledger := testSetup (0 )
342341
343- testBlockFactory , err := factory .AssembleBlock (player .Round , time . Now (). Add ( time . Minute ) )
342+ testBlockFactory , err := factory .AssembleBlock (player .Round )
344343 require .NoError (t , err , "Could not generate a proposal for round %d: %v" , player .Round , err )
345344 accountIndex := 0
346345 proposalPayload , proposalV , _ := proposalForBlock (accounts .addresses [accountIndex ], accounts .vrfs [accountIndex ], testBlockFactory , player .Period , ledger )
@@ -414,7 +413,7 @@ func TestProposalStoreUnderlying(t *testing.T) {
414413
415414 player , _ , accounts , factory , ledger := testSetup (0 )
416415
417- testBlockFactory , err := factory .AssembleBlock (player .Round , time . Now (). Add ( time . Minute ) )
416+ testBlockFactory , err := factory .AssembleBlock (player .Round )
418417 require .NoError (t , err , "Could not generate a proposal for round %d: %v" , player .Round , err )
419418 accountIndex := 0
420419 proposalPayload , proposalV , _ := proposalForBlock (accounts .addresses [accountIndex ], accounts .vrfs [accountIndex ], testBlockFactory , player .Period , ledger )
@@ -478,7 +477,7 @@ func TestProposalStoreHandle(t *testing.T) {
478477
479478 proposalVoteEventBatch , proposalPayloadEventBatch , _ := generateProposalEvents (t , player , accounts , factory , ledger )
480479
481- testBlockFactory , err := factory .AssembleBlock (player .Round , time . Now (). Add ( time . Minute ) )
480+ testBlockFactory , err := factory .AssembleBlock (player .Round )
482481 require .NoError (t , err , "Could not generate a proposal for round %d: %v" , player .Round , err )
483482 accountIndex := 0
484483 _ , proposalV0 , _ := proposalForBlock (accounts .addresses [accountIndex ], accounts .vrfs [accountIndex ], testBlockFactory , player .Period , ledger )
@@ -662,7 +661,7 @@ func TestProposalStoreGetPinnedValue(t *testing.T) {
662661
663662 // create proposal Store
664663 player , router , accounts , factory , ledger := testPlayerSetup ()
665- testBlockFactory , err := factory .AssembleBlock (player .Round , time . Now (). Add ( time . Minute ) )
664+ testBlockFactory , err := factory .AssembleBlock (player .Round )
666665 require .NoError (t , err , "Could not generate a proposal for round %d: %v" , player .Round , err )
667666 accountIndex := 0
668667 // create a route handler for the proposal store
0 commit comments