diff --git a/cmd/util_test.go b/cmd/util_test.go index 09514314187..1fc25d17320 100644 --- a/cmd/util_test.go +++ b/cmd/util_test.go @@ -63,7 +63,7 @@ func (s *utilsSuite) TestVerifyPdEndpoint(c *check.C) { c.Assert(verifyPdEndpoint(url, false), check.ErrorMatches, ".*PD endpoint should be a valid http or https URL.*") // invalid URL. - url = "\n hi" + url = "\r hi" c.Assert(verifyPdEndpoint(url, false), check.ErrorMatches, ".*invalid control character in URL.*") // http URL without host.