From 0e8fc8e0b04a3eefd81dee1d50da2a7e28d5ba73 Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Wed, 4 May 2022 13:59:25 -0400 Subject: [PATCH] evidence/pool_test: Inline slice construction Signed-off-by: Thane Thomson --- internal/evidence/pool_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/evidence/pool_test.go b/internal/evidence/pool_test.go index 162e507cb..8cbbb613d 100644 --- a/internal/evidence/pool_test.go +++ b/internal/evidence/pool_test.go @@ -587,14 +587,12 @@ func initializeBlockStore(db dbm.DB, state sm.State, valAddr []byte) (*store.Blo } func makeExtCommit(height int64, valAddr []byte) *types.ExtendedCommit { - extCommitSigs := []types.ExtendedCommitSig{{ + return types.NewExtendedCommit(height, 0, types.BlockID{}, []types.ExtendedCommitSig{{ BlockIDFlag: types.BlockIDFlagCommit, ValidatorAddress: valAddr, Timestamp: defaultEvidenceTime, Signature: []byte("Signature"), - }} - - return types.NewExtendedCommit(height, 0, types.BlockID{}, extCommitSigs) + }}) } func defaultTestPool(ctx context.Context, t *testing.T, height int64) (*evidence.Pool, types.MockPV, *eventbus.EventBus) {