mirror of https://github.com/docker/cli.git
e2e/cli-plugins: Using the variable on range scope `args` in function literal (scopelint)
``` e2e/cli-plugins/flags_test.go:135:27: Using the variable on range scope `args` in function literal (scopelint) res := icmd.RunCmd(run(args...)) ^ ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
96ec7299d8
commit
1736662bea
|
@ -131,6 +131,7 @@ func TestUnknownGlobal(t *testing.T) {
|
||||||
"separate-val": {"--unknown", "foo", "helloworld"},
|
"separate-val": {"--unknown", "foo", "helloworld"},
|
||||||
"joined-val": {"--unknown=foo", "helloworld"},
|
"joined-val": {"--unknown=foo", "helloworld"},
|
||||||
} {
|
} {
|
||||||
|
args := args
|
||||||
t.Run(name, func(t *testing.T) {
|
t.Run(name, func(t *testing.T) {
|
||||||
res := icmd.RunCmd(run(args...))
|
res := icmd.RunCmd(run(args...))
|
||||||
res.Assert(t, icmd.Expected{
|
res.Assert(t, icmd.Expected{
|
||||||
|
|
Loading…
Reference in New Issue