(timeout time.Duration, cond func() bool)
| 60 | } |
| 61 | |
| 62 | func waitUntil(timeout time.Duration, cond func() bool) bool { |
| 63 | deadline := time.Now().Add(timeout) |
| 64 | for time.Now().Before(deadline) { |
| 65 | if cond() { |
| 66 | return true |
| 67 | } |
| 68 | time.Sleep(5 * time.Millisecond) |
| 69 | } |
| 70 | return cond() |
| 71 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…