Skip to content

Commit

Permalink
Fixed context leak in test case
Browse files Browse the repository at this point in the history
Signed-off-by: Miklós Földényi <[email protected]>
  • Loading branch information
mfoldenyi committed Dec 7, 2024
1 parent 22b4c85 commit de59336
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/block/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,8 @@ func Test_ConcurrentLister_channel_deadlock(t *testing.T) {
outputChannel := make(chan ulid.ULID)
defer close(outputChannel)

timeout, _ := context.WithTimeout(context.Background(), time.Second*5)
timeout, cancel := context.WithTimeout(context.Background(), time.Second*5)
defer cancel()

_, err := lister.GetActiveAndPartialBlockIDs(timeout, outputChannel)

Expand Down

0 comments on commit de59336

Please sign in to comment.