(api *API, count int)
| 610 | } |
| 611 | |
| 612 | func waitForConnectedClients(api *API, count int) { |
| 613 | for i := 0; i < 10; i++ { |
| 614 | if countClients(api) == count { |
| 615 | // ok |
| 616 | return |
| 617 | } |
| 618 | time.Sleep(10 * time.Millisecond) |
| 619 | } |
| 620 | } |
no test coverage detected
searching dependent graphs…