aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/testhelpers_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-09-03 10:36:09 +0200
committerBjørn Erik Pedersen <[email protected]>2019-09-03 18:38:57 +0200
commit8624b9fe9eb81aeb884d36311fb6f85fed98aa43 (patch)
tree830fcb271584065cc6577c17808ade64cdb68b88 /resources/testhelpers_test.go
parent018494f363a32b9e4d3622da6842bc3e59b420b2 (diff)
downloadhugo-8624b9fe9eb81aeb884d36311fb6f85fed98aa43.tar.gz
hugo-8624b9fe9eb81aeb884d36311fb6f85fed98aa43.zip
Cache processed images by their source path
Fixes #6269
Diffstat (limited to 'resources/testhelpers_test.go')
-rw-r--r--resources/testhelpers_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/testhelpers_test.go b/resources/testhelpers_test.go
index 3e0725452..5fab0eca0 100644
--- a/resources/testhelpers_test.go
+++ b/resources/testhelpers_test.go
@@ -66,6 +66,8 @@ func newTestResourceSpec(desc specDescriptor) *Spec {
afs = afero.NewMemMapFs()
}
+ afs = hugofs.NewBaseFileDecorator(afs)
+
c := desc.c
cfg := createTestCfg()
@@ -118,7 +120,7 @@ func newTestResourceOsFs(c *qt.C) (*Spec, string) {
cfg.Set("workingDir", workDir)
- fs := hugofs.NewFrom(hugofs.Os, cfg)
+ fs := hugofs.NewFrom(hugofs.NewBaseFileDecorator(hugofs.Os), cfg)
fs.Destination = &afero.MemMapFs{}
s, err := helpers.NewPathSpec(fs, cfg, nil)