Merge pull request #1572 from thaJeztah/minor_test_nit

TestRunLabel: pass detach as argument
This commit is contained in:
Silvin Lubecki 2019-01-08 10:17:01 +01:00 committed by GitHub
commit 308b1f340a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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())
}