// TestReachableHTTP tests that the given host serves HTTP on the given port. func TestReachableHTTP(ctx context.Context, host string, port int, timeout time.Duration) { … } // TestReachableHTTPWithRetriableErrorCodes tests that the given host serves HTTP on the given port with the given retriableErrCodes. func TestReachableHTTPWithRetriableErrorCodes(ctx context.Context, host string, port int, retriableErrCodes []int, timeout time.Duration) { … }