TestUpdateRestartWithAutoRemove: use WithAutoRemove

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2019-03-08 09:59:22 -08:00
parent 54dddadc7d
commit 39eaf1ef97
1 changed files with 1 additions and 3 deletions

View File

@ -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{