Skip to content

Commit 14c5081

Browse files
committed
revert test change
1 parent 3d93654 commit 14c5081

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pool/context_pool_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,12 @@ func TestContextPool(t *testing.T) {
133133
t.Parallel()
134134
p := New().WithContext(bgctx)
135135
p.Go(func(ctx context.Context) error {
136-
<-ctx.Done()
137-
return ctx.Err()
136+
select {
137+
case <-ctx.Done():
138+
return ctx.Err()
139+
case <-time.After(10 * time.Millisecond):
140+
return nil
141+
}
138142
})
139143
p.Go(func(ctx context.Context) error {
140144
return err1

0 commit comments

Comments
 (0)