mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
integration-cli: TestImportBadURL: use proper rfc6761 "invalid domain"
Just a minor nit: make sure we use a designated "bad" domain https://datatracker.ietf.org/doc/html/rfc6761#section-6.4 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
9839ddd800
commit
6b69de61f9
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ func (s *DockerSuite) TestImportDisplay(c *testing.T) {
|
|||
}
|
||||
|
||||
func (s *DockerSuite) TestImportBadURL(c *testing.T) {
|
||||
out, _, err := dockerCmdWithError("import", "http://nourl/bad")
|
||||
out, _, err := dockerCmdWithError("import", "https://nosuchdomain.invalid/bad")
|
||||
assert.Assert(c, err != nil, "import was supposed to fail but didn't")
|
||||
// Depending on your system you can get either of these errors
|
||||
if !strings.Contains(out, "dial tcp") &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue