summaryrefslogtreecommitdiff
path: root/agreement/proposalStore_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'agreement/proposalStore_test.go')
-rw-r--r--agreement/proposalStore_test.go17
1 files changed, 8 insertions, 9 deletions
diff --git a/agreement/proposalStore_test.go b/agreement/proposalStore_test.go
index 93f2d15b4..2333b0344 100644
--- a/agreement/proposalStore_test.go
+++ b/agreement/proposalStore_test.go
@@ -20,7 +20,6 @@ import (
"os"
"reflect"
"testing"
- "time"
"github.com/stretchr/testify/require"
@@ -65,7 +64,7 @@ func TestBlockAssemblerPipeline(t *testing.T) {
round := player.Round
period := player.Period
- testBlockFactory, err := factory.AssembleBlock(player.Round, time.Now().Add(time.Minute))
+ testBlockFactory, err := factory.AssembleBlock(player.Round)
require.NoError(t, err, "Could not generate a proposal for round %d: %v", round, err)
accountIndex := 0
@@ -133,7 +132,7 @@ func TestBlockAssemblerBind(t *testing.T) {
player, _, accounts, factory, ledger := testSetup(0)
- testBlockFactory, err := factory.AssembleBlock(player.Round, time.Now().Add(time.Minute))
+ testBlockFactory, err := factory.AssembleBlock(player.Round)
require.NoError(t, err, "Could not generate a proposal for round %d: %v", player.Round, err)
accountIndex := 0
@@ -201,7 +200,7 @@ func TestBlockAssemblerAuthenticator(t *testing.T) {
player, _, accounts, factory, ledger := testSetup(0)
- testBlockFactory, err := factory.AssembleBlock(player.Round, time.Now().Add(time.Minute))
+ testBlockFactory, err := factory.AssembleBlock(player.Round)
require.NoError(t, err, "Could not generate a proposal for round %d: %v", player.Round, err)
accountIndex := 0
proposalPayload, _, _ := proposalForBlock(accounts.addresses[accountIndex], accounts.vrfs[accountIndex], testBlockFactory, player.Period, ledger)
@@ -267,7 +266,7 @@ func TestBlockAssemblerTrim(t *testing.T) {
player, _, accounts, factory, ledger := testSetup(0)
- testBlockFactory, err := factory.AssembleBlock(player.Round, time.Now().Add(time.Minute))
+ testBlockFactory, err := factory.AssembleBlock(player.Round)
require.NoError(t, err, "Could not generate a proposal for round %d: %v", player.Round, err)
accountIndex := 0
proposalPayload, _, _ := proposalForBlock(accounts.addresses[accountIndex], accounts.vrfs[accountIndex], testBlockFactory, player.Period, ledger)
@@ -340,7 +339,7 @@ func TestProposalStoreT(t *testing.T) {
player, _, accounts, factory, ledger := testSetup(0)
- testBlockFactory, err := factory.AssembleBlock(player.Round, time.Now().Add(time.Minute))
+ testBlockFactory, err := factory.AssembleBlock(player.Round)
require.NoError(t, err, "Could not generate a proposal for round %d: %v", player.Round, err)
accountIndex := 0
proposalPayload, proposalV, _ := proposalForBlock(accounts.addresses[accountIndex], accounts.vrfs[accountIndex], testBlockFactory, player.Period, ledger)
@@ -414,7 +413,7 @@ func TestProposalStoreUnderlying(t *testing.T) {
player, _, accounts, factory, ledger := testSetup(0)
- testBlockFactory, err := factory.AssembleBlock(player.Round, time.Now().Add(time.Minute))
+ testBlockFactory, err := factory.AssembleBlock(player.Round)
require.NoError(t, err, "Could not generate a proposal for round %d: %v", player.Round, err)
accountIndex := 0
proposalPayload, proposalV, _ := proposalForBlock(accounts.addresses[accountIndex], accounts.vrfs[accountIndex], testBlockFactory, player.Period, ledger)
@@ -478,7 +477,7 @@ func TestProposalStoreHandle(t *testing.T) {
proposalVoteEventBatch, proposalPayloadEventBatch, _ := generateProposalEvents(t, player, accounts, factory, ledger)
- testBlockFactory, err := factory.AssembleBlock(player.Round, time.Now().Add(time.Minute))
+ testBlockFactory, err := factory.AssembleBlock(player.Round)
require.NoError(t, err, "Could not generate a proposal for round %d: %v", player.Round, err)
accountIndex := 0
_, proposalV0, _ := proposalForBlock(accounts.addresses[accountIndex], accounts.vrfs[accountIndex], testBlockFactory, player.Period, ledger)
@@ -662,7 +661,7 @@ func TestProposalStoreGetPinnedValue(t *testing.T) {
// create proposal Store
player, router, accounts, factory, ledger := testPlayerSetup()
- testBlockFactory, err := factory.AssembleBlock(player.Round, time.Now().Add(time.Minute))
+ testBlockFactory, err := factory.AssembleBlock(player.Round)
require.NoError(t, err, "Could not generate a proposal for round %d: %v", player.Round, err)
accountIndex := 0
// create a route handler for the proposal store