diff --git a/integration/integration_test.go b/integration/integration_test.go index 4406fe42c..6f0b9b8a6 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -397,9 +397,9 @@ func TestBuildWithHTTPError(t *testing.T) { "-t", dockerImage, "-f", dockerfile, repo})...) - _, err := RunCommandWithoutTest(dockerCmd) + out, err := RunCommandWithoutTest(dockerCmd) if err == nil { - t.Fatalf("an error was expected") + t.Errorf("an error was expected, got %s", string(out)) } // Build with kaniko @@ -414,9 +414,9 @@ func TestBuildWithHTTPError(t *testing.T) { kanikoCmd := exec.Command("docker", dockerRunFlags...) - _, err = RunCommandWithoutTest(kanikoCmd) + out, err = RunCommandWithoutTest(kanikoCmd) if err == nil { - t.Fatalf("an error was expected") + t.Errorf("an error was expected, got %s", string(out)) } }