Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit eac315c

Browse files
committed
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 <[email protected]>
1 parent 45604a6 commit eac315c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (s *E2eSuite) TestClassicLogin() {
134134
Expect(output).To(ContainSubstring("Cannot perform an interactive login from a non TTY device"))
135135
Expect(err).NotTo(BeNil())
136136
output, err = s.NewDockerCommand("logout", "someregistry.docker.io").Exec()
137-
Expect(output).To(ContainSubstring("Removing login credentials for someregistry.docker.io"))
137+
Expect(output).To(ContainSubstring("someregistry.docker.io"))
138138
Expect(err).To(BeNil())
139139
}
140140

0 commit comments

Comments
 (0)