diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2019-08-06 21:08:07 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2019-09-18 12:57:34 +0200 |
commit | 27916165b6172a386a8ad27ff61f962609b32b84 (patch) | |
tree | 4b5b4ec6067c60075e2a9ad2ee048918235157a8 /opts | |
parent | 2c31edbbb64aa86e76aed60d48fec4eb530cf9f6 (diff) |
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>
Diffstat (limited to 'opts')
-rw-r--r-- | opts/ulimit_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opts/ulimit_test.go b/opts/ulimit_test.go index 77f87cc6a8..90b15d61e8 100644 --- a/opts/ulimit_test.go +++ b/opts/ulimit_test.go @@ -8,7 +8,7 @@ import ( func TestUlimitOpt(t *testing.T) { ulimitMap := map[string]*units.Ulimit{ - "nofile": {"nofile", 1024, 512}, + "nofile": {Name: "nofile", Hard: 1024, Soft: 512}, } ulimitOpt := NewUlimitOpt(&ulimitMap) |