Fix test
This commit is contained in:
@@ -405,12 +405,14 @@ func TestBuildError(t *testing.T) {
|
|||||||
want := []string{
|
want := []string{
|
||||||
`RUN echo hello`,
|
`RUN echo hello`,
|
||||||
`/bin/sh: badcmd: not found`,
|
`/bin/sh: badcmd: not found`,
|
||||||
`process "/bin/sh -c badcmd" did not complete successfully: exit code: 127`,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, want := range want {
|
for _, want := range want {
|
||||||
assert.Contains(t, logged.String(), want)
|
assert.Contains(t, logged.String(), want)
|
||||||
}
|
}
|
||||||
|
assert.ErrorContains(t, err,
|
||||||
|
`process "/bin/sh -c badcmd" did not complete successfully: exit code: 127`,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBuildExecError(t *testing.T) {
|
func TestBuildExecError(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user