summaryrefslogtreecommitdiffstats
path: root/hugolib/siteJSONEncode_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/siteJSONEncode_test.go')
-rw-r--r--hugolib/siteJSONEncode_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/hugolib/siteJSONEncode_test.go b/hugolib/siteJSONEncode_test.go
index 1218bfd34..4b01a9144 100644
--- a/hugolib/siteJSONEncode_test.go
+++ b/hugolib/siteJSONEncode_test.go
@@ -20,15 +20,14 @@ import (
"path/filepath"
"github.com/spf13/hugo/deps"
- "github.com/spf13/hugo/hugofs"
)
// Issue #1123
// Testing prevention of cyclic refs in JSON encoding
// May be smart to run with: -timeout 4000ms
func TestEncodePage(t *testing.T) {
-
- fs := hugofs.NewMem()
+ t.Parallel()
+ cfg, fs := newTestCfg()
// borrowed from menu_test.go
for _, src := range menuPageSources {
@@ -36,7 +35,7 @@ func TestEncodePage(t *testing.T) {
}
- s := buildSingleSite(t, deps.DepsCfg{Fs: fs}, BuildCfg{})
+ s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{})
_, err := json.Marshal(s)
check(t, err)