summaryrefslogtreecommitdiffstats
path: root/tpl/data/resources_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/data/resources_test.go')
-rw-r--r--tpl/data/resources_test.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/tpl/data/resources_test.go b/tpl/data/resources_test.go
index f6baae18b..c1da36d05 100644
--- a/tpl/data/resources_test.go
+++ b/tpl/data/resources_test.go
@@ -23,6 +23,7 @@ import (
"testing"
"time"
+ "github.com/gohugoio/hugo/common/loggers"
"github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/helpers"
@@ -171,10 +172,15 @@ func newDeps(cfg config.Provider) *deps.Deps {
if err != nil {
panic(err)
}
+
+ logger := loggers.NewErrorLogger()
+
return &deps.Deps{
- Cfg: cfg,
- Fs: hugofs.NewMem(l),
- ContentSpec: cs,
+ Cfg: cfg,
+ Fs: hugofs.NewMem(l),
+ ContentSpec: cs,
+ Log: logger,
+ DistinctErrorLog: helpers.NewDistinctLogger(logger.ERROR),
}
}