Browse code

TestUpdateRestartWithAutoRemove: use WithAutoRemove

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>

Kir Kolyshkin authored on 2019/03/09 02:59:22
Showing 1 changed files
... ...
@@ -50,9 +50,7 @@ func TestUpdateRestartWithAutoRemove(t *testing.T) {
50 50
 	client := testEnv.APIClient()
51 51
 	ctx := context.Background()
52 52
 
53
-	cID := container.Run(t, ctx, client, func(c *container.TestContainerConfig) {
54
-		c.HostConfig.AutoRemove = true
55
-	})
53
+	cID := container.Run(t, ctx, client, container.WithAutoRemove)
56 54
 
57 55
 	_, err := client.ContainerUpdate(ctx, cID, containertypes.UpdateConfig{
58 56
 		RestartPolicy: containertypes.RestartPolicy{