From: Gabriel Rosenhouse Date: Wed, 1 Nov 2017 05:21:33 +0000 (-0700) Subject: libcni: fix go vet error X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=7f03ee4537687c11918665c00de6fddf3c8fa9f6;p=cni.git libcni: fix go vet error --- diff --git a/libcni/conf_test.go b/libcni/conf_test.go index b089748..c931a5a 100644 --- a/libcni/conf_test.go +++ b/libcni/conf_test.go @@ -288,7 +288,7 @@ var _ = Describe("Loading configuration from disk", func() { Context("when there is no config for the desired plugin list", func() { It("returns a useful error", func() { _, err := libcni.LoadConfList(configDir, "some-other-plugin") - Expect(err).To(MatchError(libcni.NotFoundError{configDir, "some-other-plugin"})) + Expect(err).To(MatchError(libcni.NotFoundError{Dir: configDir, Name: "some-other-plugin"})) }) })