(c chan struct{}, d time.Duration)
| 37 | } |
| 38 | |
| 39 | func closedWithin(c chan struct{}, d time.Duration) func() bool { |
| 40 | return func() bool { |
| 41 | select { |
| 42 | case <-c: |
| 43 | return true |
| 44 | case <-time.After(d): |
| 45 | return false |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func TestProvisionerd(t *testing.T) { |
| 51 | t.Parallel() |