Waits until a proxy is ready to serve. Aborts test on proxy start-up error.
(t *testing.T, s Server)
| 641 | // Waits until a proxy is ready to serve. |
| 642 | // Aborts test on proxy start-up error. |
| 643 | func waitForServer(t *testing.T, s Server) { |
| 644 | select { |
| 645 | case <-s.Ready(): |
| 646 | case err := <-s.Error(): |
| 647 | t.Fatal(err) |
| 648 | } |
| 649 | } |
no test coverage detected
searching dependent graphs…