mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
integration/volume: TestRunMountImage: use test-util for container cleanup
update the defer to use the container test-utils package to fix unhandled error warnings. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -181,7 +181,7 @@ func TestRunMountImage(t *testing.T) {
|
||||
create, creatErr := apiClient.ContainerCreate(ctx, &cfg, &hostCfg, &network.NetworkingConfig{}, nil, ctrName)
|
||||
id := create.ID
|
||||
if id != "" {
|
||||
defer apiClient.ContainerRemove(ctx, id, containertypes.RemoveOptions{Force: true})
|
||||
defer container.Remove(ctx, t, apiClient, id, containertypes.RemoveOptions{Force: true})
|
||||
}
|
||||
|
||||
if tc.createErr != "" {
|
||||
|
||||
Reference in New Issue
Block a user