Skip to content

Commit 72baacb

Browse files
Merge pull request #2502 from Luap99/fix-test-compile
pkg/config: fix broken tests due indirect merge conflict
2 parents 55585de + 3872dbe commit 72baacb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/config/config_local_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,11 +616,11 @@ var _ = Describe("Config Local", func() {
616616
gomega.Expect(err.Error()).To(gomega.ContainSubstring("null bytes"))
617617
})
618618
It("should parse log_path from config file", func() {
619-
config, err := New(nil)
619+
config, err := newLocked(&Options{}, &paths{})
620620
gomega.Expect(err).ToNot(gomega.HaveOccurred())
621621
gomega.Expect(config.Containers.LogPath).To(gomega.Equal(""))
622622

623-
config2, err := NewConfig("testdata/containers_default.conf")
623+
config2, err := newLocked(&Options{}, &paths{etc: "testdata/containers_default.conf"})
624624
gomega.Expect(err).ToNot(gomega.HaveOccurred())
625625
gomega.Expect(config2.Containers.LogPath).To(gomega.Equal("/var/log/containers"))
626626
})

0 commit comments

Comments
 (0)