Skip to content

Commit 39eaf1e

Browse files
committed
TestUpdateRestartWithAutoRemove: use WithAutoRemove
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 54dddad commit 39eaf1e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

integration/container/update_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ func TestUpdateRestartWithAutoRemove(t *testing.T) {
5050
client := testEnv.APIClient()
5151
ctx := context.Background()
5252

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)
5654

5755
_, err := client.ContainerUpdate(ctx, cID, containertypes.UpdateConfig{
5856
RestartPolicy: containertypes.RestartPolicy{

0 commit comments

Comments
 (0)