event: fix test

This commit is contained in:
Felix Lange 2020-02-12 13:13:33 +01:00
parent 5968e03e1e
commit 4f7eef6c36

View file

@ -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():