Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
| ... | ... |
@@ -50,9 +50,7 @@ func TestUpdateRestartWithAutoRemove(t *testing.T) {
|
| 50 | 50 |
client := testEnv.APIClient() |
| 51 | 51 |
ctx := context.Background() |
| 52 | 52 |
|
| 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) |
|
| 56 | 54 |
|
| 57 | 55 |
_, err := client.ContainerUpdate(ctx, cID, containertypes.UpdateConfig{
|
| 58 | 56 |
RestartPolicy: containertypes.RestartPolicy{
|