diff --git a/integration-cli/docker_cli_push_test.go b/integration-cli/docker_cli_push_test.go index 3a984ebcf2..10f1166d5b 100644 --- a/integration-cli/docker_cli_push_test.go +++ b/integration-cli/docker_cli_push_test.go @@ -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 {