fixup! fixup! fixup! add should fail on 40x
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
parent
999365f5f9
commit
5412ac65da
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue