event, p2p/simulations/adapters: fix rare goroutine leaks (#20657)
Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
@ -102,7 +102,7 @@ func TestResubscribe(t *testing.T) {
|
||||
func TestResubscribeAbort(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
done := make(chan error)
|
||||
done := make(chan error, 1)
|
||||
sub := Resubscribe(0, func(ctx context.Context) (Subscription, error) {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
|
Reference in New Issue
Block a user