mirror of https://github.com/docker/cli.git
opts/ulimit_test.go:11:13: composites: `*github.com/docker/cli/vendor/github.com/docker/go-units.Ulimit` composite literal uses unkeyed fields (govet)
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
parent
1bfe81318d
commit
b3d4c6aac7
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
func TestUlimitOpt(t *testing.T) {
|
func TestUlimitOpt(t *testing.T) {
|
||||||
ulimitMap := map[string]*units.Ulimit{
|
ulimitMap := map[string]*units.Ulimit{
|
||||||
"nofile": {"nofile", 1024, 512},
|
"nofile": {Name: "nofile", Hard: 1024, Soft: 512},
|
||||||
}
|
}
|
||||||
|
|
||||||
ulimitOpt := NewUlimitOpt(&ulimitMap)
|
ulimitOpt := NewUlimitOpt(&ulimitMap)
|
||||||
|
|
Loading…
Reference in New Issue