ForNetwork waits for a network endpoint to respond.
(ctx context.Context, protocol, address, condition string, timeout time.Duration)
| 393 | |
| 394 | // ForNetwork waits for a network endpoint to respond. |
| 395 | func ForNetwork(ctx context.Context, protocol, address, condition string, timeout time.Duration) error { |
| 396 | waitInterval := time.Second |
| 397 | return forNetwork(ctx, protocol, address, condition, timeout, waitInterval) |
| 398 | } |
| 399 | |
| 400 | func forNetwork(ctx context.Context, protocol string, address string, condition string, timeout time.Duration, waitInterval time.Duration) error { |
| 401 | l := logger.From(ctx) |
no test coverage detected