From eac315c6ec8c5c554f4bc2ca76c3e1ca71d5927e Mon Sep 17 00:00:00 2001 From: Christopher Crone Date: Fri, 17 Jul 2020 16:55:09 +0200 Subject: [PATCH] tests: Fix logout test on Windows The macOS/Linux output when logging out from a registry that you're not logged into is different to that of Windows. As the login test doesn't really test if the registry login works, the test now just checks that the command is properly parsed. Signed-off-by: Christopher Crone --- tests/e2e/e2e_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 17c49adab..1dd9f8754 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -134,7 +134,7 @@ func (s *E2eSuite) TestClassicLogin() { Expect(output).To(ContainSubstring("Cannot perform an interactive login from a non TTY device")) Expect(err).NotTo(BeNil()) output, err = s.NewDockerCommand("logout", "someregistry.docker.io").Exec() - Expect(output).To(ContainSubstring("Removing login credentials for someregistry.docker.io")) + Expect(output).To(ContainSubstring("someregistry.docker.io")) Expect(err).To(BeNil()) }