diff options
| author | Pawel Stolowski <stolowski@gmail.com> | 2017-02-24 11:14:51 +0100 |
|---|---|---|
| committer | Pawel Stolowski <stolowski@gmail.com> | 2017-02-24 11:14:51 +0100 |
| commit | d7ee4cdc3c7824bb7e108531943210fd81edf307 (patch) | |
| tree | a20e3028b5cdcab37f5ae239c40b095460e3ab97 | |
| parent | 937827a7e3f4176e77cf60cd9fdba6337848f0d2 (diff) | |
Fix for:fix-vet-error
interfaces/mount/backend_test.go:127: github.com/snapcore/snapd/interfaces/mount.Entry composite literal uses unkeyed fields
| -rw-r--r-- | interfaces/mount/backend_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interfaces/mount/backend_test.go b/interfaces/mount/backend_test.go index 3d7828579d..28af0933bb 100644 --- a/interfaces/mount/backend_test.go +++ b/interfaces/mount/backend_test.go @@ -124,8 +124,8 @@ slots: ` func (s *backendSuite) TestSetupSetsupSimple(c *C) { - fsEntry1 := mount.Entry{"/src-1", "/dst-1", "none", []string{"bind", "ro"}, 0, 0} - fsEntry2 := mount.Entry{"/src-2", "/dst-2", "none", []string{"bind", "ro"}, 0, 0} + fsEntry1 := mount.Entry{Name: "/src-1", Dir: "/dst-1", Type: "none", Options: []string{"bind", "ro"}, DumpFrequency: 0, CheckPassNumber: 0} + fsEntry2 := mount.Entry{Name: "/src-2", Dir: "/dst-2", Type: "none", Options: []string{"bind", "ro"}, DumpFrequency: 0, CheckPassNumber: 0} // Give the plug a permanent effect s.Iface.MountPermanentPlugCallback = func(spec *mount.Specification, plug *interfaces.Plug) error { |
