Skip to content

Commit 308b1f3

Browse files
Merge pull request docker#1572 from thaJeztah/minor_test_nit
TestRunLabel: pass detach as argument
2 parents 86f8bee + eb1b4b8 commit 308b1f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cli/command/container/run_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ func TestRunLabel(t *testing.T) {
2323
Version: "1.36",
2424
})
2525
cmd := NewRunCommand(cli)
26-
cmd.Flags().Set("detach", "true")
27-
cmd.SetArgs([]string{"--label", "foo", "busybox"})
26+
cmd.SetArgs([]string{"--detach=true", "--label", "foo", "busybox"})
2827
assert.NilError(t, cmd.Execute())
2928
}
3029

0 commit comments

Comments
 (0)