mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
TestUpdateRestartWithAutoRemove: use WithAutoRemove
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
54dddadc7d
commit
39eaf1ef97
1 changed files with 1 additions and 3 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue