TestUpdateRestartWithAutoRemove: use WithAutoRemove
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commit 39eaf1ef9709d79fc50095ee2a0546bd2f565ab2) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: f9823799281419aae1b30d961d5c719dd6e392e2 Component: engine
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
2794526c50
commit
00e3442134
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user