Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Apr 17, 2024
1 parent 16ce5ec commit 12788ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion provider/internal/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,14 @@ func TestBuildError(t *testing.T) {
want := []string{
`RUN echo hello`,
`/bin/sh: badcmd: not found`,
`process "/bin/sh -c badcmd" did not complete successfully: exit code: 127`,
}

for _, want := range 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) {
Expand Down

0 comments on commit 12788ac

Please # to comment.