TestUlimitOpt: fix composite literal uses unkeyed fields (govet)
``` 18:15:45 opts/ulimit_test.go:11:13: composites: `*github.com/docker/docker/vendor/github.com/docker/go-units.Ulimit` composite literal uses unkeyed fields (govet) 18:15:45 "nofile": {"nofile", 1024, 512}, 18:15:45 ^ ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2c31edbbb6
commit
27916165b6
|
@ -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