Fix e2e-local tests when compiled with go1.14

Check https://github.com/golang/go/commit/64cfe9f

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
Ulysses Souza 2020-08-14 09:45:03 +02:00
parent ee915cec78
commit 2f16ca1e7a
1 changed files with 2 additions and 2 deletions

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",
})
})
}