e2e: Use icmd.None in a couple more places

This checks for actual emptiness, while `""` means "don't care".

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2019-04-03 11:07:52 +01:00
parent 5bbb56bfee
commit add2da66c5
1 changed files with 2 additions and 2 deletions

View File

@ -45,13 +45,13 @@ func TestClashWithGlobalArgs(t *testing.T) {
name: "short-with-val", name: "short-with-val",
args: []string{"-c", "Christmas"}, args: []string{"-c", "Christmas"},
expectedOut: "Merry Christmas!", expectedOut: "Merry Christmas!",
expectedErr: "", expectedErr: icmd.None,
}, },
{ {
name: "short-with-val", name: "short-with-val",
args: []string{"--context", "Christmas"}, args: []string{"--context", "Christmas"},
expectedOut: "Merry Christmas!", expectedOut: "Merry Christmas!",
expectedErr: "", expectedErr: icmd.None,
}, },
} { } {
t.Run(tc.name, func(t *testing.T) { t.Run(tc.name, func(t *testing.T) {