From eb1b4b83c997edcaef45071a3202ad8e64690f65 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 13 Dec 2018 13:22:38 +0100 Subject: [PATCH] TestRunLabel: pass detach as argument Signed-off-by: Sebastiaan van Stijn --- cli/command/container/run_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()) }