diff --git a/cli/command/container/run_test.go b/cli/command/container/run_test.go index 4938a56446..eecbe46c4a 100644 --- a/cli/command/container/run_test.go +++ b/cli/command/container/run_test.go @@ -23,8 +23,7 @@ func TestRunLabel(t *testing.T) { Version: "1.36", }) cmd := NewRunCommand(cli) - cmd.Flags().Set("detach", "true") - cmd.SetArgs([]string{"--label", "foo", "busybox"}) + cmd.SetArgs([]string{"--detach=true", "--label", "foo", "busybox"}) assert.NilError(t, cmd.Execute()) }