(ctx context.Context, t *testing.T, apiClient client.APIClient, containerID string)
| 288 | } |
| 289 | |
| 290 | func killContainerProcess(ctx context.Context, t *testing.T, apiClient client.APIClient, containerID string) { |
| 291 | t.Helper() |
| 292 | |
| 293 | inspect, err := apiClient.ContainerInspect(ctx, containerID, client.ContainerInspectOptions{}) |
| 294 | assert.NilError(t, err) |
| 295 | |
| 296 | assert.NilError(t, process.Kill(inspect.Container.State.Pid)) |
| 297 | } |
| 298 | |
| 299 | func assertContainerExitCode(t *testing.T, wait client.ContainerWaitResult, expected int64, timeout time.Duration) { |
| 300 | t.Helper() |
no test coverage detected
searching dependent graphs…