From 5412ac65da6968f233d216cda39e4428f6163f43 Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Sat, 20 Jun 2020 10:46:41 +0200 Subject: [PATCH] fixup! fixup! fixup! add should fail on 40x Signed-off-by: Yoan Blanc --- integration/integration_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)) } }