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

Commit

Permalink
tests: Fix logout test on Windows
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
chris-crone committed Jul 17, 2020
1 parent 45604a6 commit eac315c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit eac315c

Please sign in to comment.