Merge pull request #481 from ulyssessouza/fix-golang114-e2e-local-tests

Fix e2e-local tests when compiled with go1.14
This commit is contained in:
Chris Crone 2020-08-14 14:32:46 +02:00 committed by GitHub
commit d902c968e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ func TestLoginCommandDelegation(t *testing.T) {
res := c.RunDockerCmd("login", "-u", "nouser", "-p", "wrongpasword")
res.Assert(t, icmd.Expected{
ExitCode: 1,
Err: "Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password",
Err: "unauthorized: incorrect username or password",
})
})
@ -225,7 +225,7 @@ func TestLoginCommandDelegation(t *testing.T) {
res := c.RunDockerCmd("login", "-u", "nouser", "-p", "wrongpasword")
res.Assert(t, icmd.Expected{
ExitCode: 1,
Err: "Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password",
Err: "unauthorized: incorrect username or password",
})
})
}