aboutsummaryrefslogtreecommitdiffhomepage
path: root/create
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-04-08 15:15:26 +0200
committerBjørn Erik Pedersen <[email protected]>2022-04-10 13:49:31 +0200
commit30c2e54c25f6c3a942080f30be49712adda27586 (patch)
tree6805e432456f92623db0b1c862879cee54693481 /create
parent3117e5859509e909298153972ab6f700af577f92 (diff)
downloadhugo-30c2e54c25f6c3a942080f30be49712adda27586.tar.gz
hugo-30c2e54c25f6c3a942080f30be49712adda27586.zip
Replace all usage of CopyOnWriteFs with OverlayFs
Fixes #9761
Diffstat (limited to 'create')
-rw-r--r--create/content_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/create/content_test.go b/create/content_test.go
index b99a816b7..80a666093 100644
--- a/create/content_test.go
+++ b/create/content_test.go
@@ -82,7 +82,6 @@ func TestNewContentFromFile(t *testing.T) {
cfg, fs := newTestCfg(c, mm)
h, err := hugolib.NewHugoSites(deps.DepsCfg{Cfg: cfg, Fs: fs})
c.Assert(err, qt.IsNil)
-
err = create.NewContent(h, cas.kind, cas.path)
if b, ok := cas.expected.(bool); ok && !b {
@@ -98,6 +97,7 @@ func TestNewContentFromFile(t *testing.T) {
if !strings.HasPrefix(fname, "content") {
fname = filepath.Join("content", fname)
}
+
content := readFileFromFs(c, fs.Source, fname)
for _, v := range cas.expected.([]string) {