mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 06:04:28 +02:00
fixup! fixup! fixup! add should fail on 40x
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user