This commit is contained in:
Sebastiaan van Stijn 2024-04-16 09:02:04 -03:00 committed by GitHub
commit 09d6328643
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,8 +232,8 @@ func (s *DockerCLIPushSuite) TestPushToCentralRegistryUnauthorized(c *testing.T)
const imgRepo = "test/busybox"
cli.DockerCmd(c, "tag", "busybox", imgRepo)
out, _, err := dockerCmdWithError("push", imgRepo)
assert.ErrorContains(c, err, "", out)
assert.Assert(c, !strings.Contains(out, "Retrying"))
assert.Check(c, is.ErrorContains(err, ""), out)
assert.Check(c, !strings.Contains(out, "Retrying"), out)
}
func getTestTokenService(status int, body string, retries int) *httptest.Server {