hugolib: Enable leaktest

See #3082
This commit is contained in:
Bjørn Erik Pedersen 2017-02-22 09:39:57 +01:00
parent bcd32f1086
commit 8b49c3a175

View file

@ -10,7 +10,7 @@ import (
"os"
"path/filepath"
//"github.com/fortytw2/leaktest"
"github.com/fortytw2/leaktest"
"github.com/fsnotify/fsnotify"
"github.com/spf13/afero"
"github.com/spf13/hugo/deps"
@ -391,7 +391,7 @@ func doTestMultiSitesBuild(t *testing.T, configTemplate, configSuffix string) {
func TestMultiSitesRebuild(t *testing.T) {
// t.Parallel() not supported, see https://github.com/fortytw2/leaktest/issues/4
// defer leaktest.Check(t)()
defer leaktest.Check(t)()
siteConfig := testSiteConfig{Fs: afero.NewMemMapFs(), DefaultContentLanguage: "fr", DefaultContentLanguageInSubdir: true}
sites := createMultiTestSites(t, siteConfig, multiSiteTOMLConfigTemplate)