Skip to content

Commit

Permalink
Satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Mar 17, 2022
1 parent bba991b commit 9342740
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/stress/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ func compareFinalizedHeadsByRound(ctx context.Context, t *testing.T, nodes []*ut
// it returns the finalised hash if it succeeds
func compareFinalizedHeadsWithRetry(ctx context.Context, t *testing.T,
nodes []*utils.Node, round uint64,
getFinalizedHeadByRoundTimeout time.Duration) (hash common.Hash, err error) {
getFinalizedHeadByRoundTimeout time.Duration) ( //nolint:unparam
hash common.Hash, err error) {
var hashes map[common.Hash][]string

for i := 0; i < maxRetries; i++ {
Expand Down
4 changes: 2 additions & 2 deletions tests/stress/stress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,9 @@ func TestSync_SubmitExtrinsic(t *testing.T) {
)

for i := 0; i < maxRetries; i++ {
getBlockCtx, cancel := context.WithTimeout(ctx, time.Second)
getBlockCtx, getBlockCancel := context.WithTimeout(ctx, time.Second)
block := utils.GetBlock(getBlockCtx, t, nodes[idx], header.ParentHash)
cancel()
getBlockCancel()

if block == nil {
// couldn't get block, increment retry counter
Expand Down

0 comments on commit 9342740

Please sign in to comment.