Răsfoiți Sursa

Fix e2e-local tests when compiled with go1.14

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

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza 5 ani în urmă
părinte
comite
2f16ca1e7a
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      tests/e2e/e2e_test.go

+ 2 - 2
tests/e2e/e2e_test.go

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