(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestPoolVariousSizesConcurrent(t *testing.T) { |
| 48 | concurrency := 5 |
| 49 | ch := make(chan struct{}) |
| 50 | for i := 0; i < concurrency; i++ { |
| 51 | go func() { |
| 52 | testPoolVariousSizes(t) |
| 53 | ch <- struct{}{} |
| 54 | }() |
| 55 | } |
| 56 | for i := 0; i < concurrency; i++ { |
| 57 | select { |
| 58 | case <-ch: |
| 59 | case <-time.After(3 * time.Second): |
| 60 | t.Fatalf("timeout") |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | func testPoolVariousSizes(t *testing.T) { |
| 66 | for i := 0; i < steps+1; i++ { |
nothing calls this directly
no test coverage detected
searching dependent graphs…