fixup! fixup! fixup! add should fail on 40x

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
Yoan Blanc 2020-06-20 10:46:41 +02:00
parent 999365f5f9
commit 5412ac65da
No known key found for this signature in database
GPG Key ID: 6058CF4574298812
1 changed files with 4 additions and 4 deletions

View File

@ -397,9 +397,9 @@ func TestBuildWithHTTPError(t *testing.T) {
"-t", dockerImage, "-t", dockerImage,
"-f", dockerfile, "-f", dockerfile,
repo})...) repo})...)
_, err := RunCommandWithoutTest(dockerCmd) out, err := RunCommandWithoutTest(dockerCmd)
if err == nil { if err == nil {
t.Fatalf("an error was expected") t.Errorf("an error was expected, got %s", string(out))
} }
// Build with kaniko // Build with kaniko
@ -414,9 +414,9 @@ func TestBuildWithHTTPError(t *testing.T) {
kanikoCmd := exec.Command("docker", dockerRunFlags...) kanikoCmd := exec.Command("docker", dockerRunFlags...)
_, err = RunCommandWithoutTest(kanikoCmd) out, err = RunCommandWithoutTest(kanikoCmd)
if err == nil { if err == nil {
t.Fatalf("an error was expected") t.Errorf("an error was expected, got %s", string(out))
} }
} }