Bläddra i källkod

TestUpdateRestartWithAutoRemove: use WithAutoRemove

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Kir Kolyshkin 6 år sedan
förälder
incheckning
39eaf1ef97
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      integration/container/update_test.go

+ 1 - 3
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{