(t *testing.T)
| 880 | } |
| 881 | |
| 882 | func TestParseRestartPolicyAutoRemove(t *testing.T) { |
| 883 | _, _, _, err := parseRun([]string{"--rm", "--restart=always", "img", "cmd"}) //nolint:dogsled |
| 884 | const expected = "conflicting options: cannot specify both --restart and --rm" |
| 885 | assert.Check(t, is.Error(err, expected)) |
| 886 | } |
| 887 | |
| 888 | func TestParseHealth(t *testing.T) { |
| 889 | checkOk := func(args ...string) *container.HealthConfig { |