libcni: fix go vet error
authorGabriel Rosenhouse <grosenhouse@pivotal.io>
Wed, 1 Nov 2017 05:21:33 +0000 (22:21 -0700)
committerGabriel Rosenhouse <grosenhouse@pivotal.io>
Wed, 1 Nov 2017 05:24:53 +0000 (22:24 -0700)
libcni/conf_test.go

index b089748..c931a5a 100644 (file)
@@ -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"}))
                        })
                })