summaryrefslogtreecommitdiff
path: root/agreement/proposal_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'agreement/proposal_test.go')
-rw-r--r--agreement/proposal_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/agreement/proposal_test.go b/agreement/proposal_test.go
index 49481ae84..24ddfbfd1 100644
--- a/agreement/proposal_test.go
+++ b/agreement/proposal_test.go
@@ -20,7 +20,6 @@ import (
"context"
"os"
"testing"
- "time"
"github.com/stretchr/testify/require"
@@ -47,7 +46,7 @@ func testSetup(periodCount uint64) (player, rootRouter, testAccountData, testBlo
}
func createProposalsTesting(accs testAccountData, round basics.Round, period period, factory BlockFactory, ledger Ledger) (ps []proposal, vs []vote) {
- ve, err := factory.AssembleBlock(round, time.Now().Add(time.Minute))
+ ve, err := factory.AssembleBlock(round)
if err != nil {
logging.Base().Errorf("Could not generate a proposal for round %d: %v", round, err)
return nil, nil
@@ -123,7 +122,7 @@ func TestProposalFunctions(t *testing.T) {
player, _, accs, factory, ledger := testSetup(0)
round := player.Round
period := player.Period
- ve, err := factory.AssembleBlock(player.Round, time.Now().Add(time.Minute))
+ ve, err := factory.AssembleBlock(player.Round)
require.NoError(t, err, "Could not generate a proposal for round %d: %v", round, err)
validator := testBlockValidator{}
@@ -163,7 +162,7 @@ func TestProposalUnauthenticated(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)
validator := testBlockValidator{}