From 00e344213462dd1aa17e6b3716108b6531020436 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Fri, 8 Mar 2019 09:59:22 -0800 Subject: [PATCH] TestUpdateRestartWithAutoRemove: use WithAutoRemove Signed-off-by: Kir Kolyshkin (cherry picked from commit 39eaf1ef9709d79fc50095ee2a0546bd2f565ab2) Signed-off-by: Sebastiaan van Stijn Upstream-commit: f9823799281419aae1b30d961d5c719dd6e392e2 Component: engine --- components/engine/integration/container/update_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/engine/integration/container/update_test.go b/components/engine/integration/container/update_test.go index 6a136a707e..129f8ead47 100644 --- a/components/engine/integration/container/update_test.go +++ b/components/engine/integration/container/update_test.go @@ -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{