summaryrefslogtreecommitdiffstats
path: root/hugolib/site_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-14 17:18:32 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-14 23:14:51 +0100
commit94f0f7e59788e802e706a55cac0d52a9e70ff745 (patch)
treed8e613f37940aeadd18703f35b9bf912c360be72 /hugolib/site_test.go
parent3c29c5af8ee865ef20741f576088e031e940c3d2 (diff)
cache/filecache: Add a :project placeholder
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC. See #5439
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r--hugolib/site_test.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index 0fd3a397a..4f8d43122 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -15,7 +15,6 @@ package hugolib
import (
"fmt"
- "os"
"path/filepath"
"strings"
"testing"
@@ -25,7 +24,6 @@ import (
"github.com/gohugoio/hugo/helpers"
"github.com/gohugoio/hugo/deps"
- "github.com/gohugoio/hugo/hugofs"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
@@ -351,15 +349,6 @@ func doTestShouldAlwaysHaveUglyURLs(t *testing.T, uglyURLs bool) {
}
-func TestNewSiteDefaultLang(t *testing.T) {
- t.Parallel()
- defer os.Remove("resources")
- s, err := NewSiteDefaultLang()
- require.NoError(t, err)
- require.Equal(t, hugofs.Os, s.Fs.Source)
- require.Equal(t, hugofs.Os, s.Fs.Destination)
-}
-
// Issue #3355
func TestShouldNotWriteZeroLengthFilesToDestination(t *testing.T) {
cfg, fs := newTestCfg()