logOutput logs process output with prefix
(t testing.TB, prefix string, r io.Reader)
| 433 | |
| 434 | // logOutput logs process output with prefix |
| 435 | func logOutput(t testing.TB, prefix string, r io.Reader) { |
| 436 | t.Helper() |
| 437 | scanner := bufio.NewScanner(r) |
| 438 | for scanner.Scan() { |
| 439 | t.Logf("[%s] %s", prefix, scanner.Text()) |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | // waitForServer waits for a server to be ready |
| 444 | func waitForServer(ctx context.Context, t testing.TB, url string, timeout time.Duration) error { |