TestUpdateRestartWithAutoRemove: use WithAutoRemove
@@ -50,9 +50,7 @@ func TestUpdateRestartWithAutoRemove(t *testing.T) {
client := testEnv.APIClient()
ctx := context.Background()
- cID := container.Run(t, ctx, client, func(c *container.TestContainerConfig) {
- c.HostConfig.AutoRemove = true
- })
+ cID := container.Run(t, ctx, client, container.WithAutoRemove)
_, err := client.ContainerUpdate(ctx, cID, containertypes.UpdateConfig{
RestartPolicy: containertypes.RestartPolicy{
