shithub: hugo

Download patch

ref: 8b49c3a17547cf073dd555d4a0b6b68268c85d76
parent: bcd32f1086c8c604fb22a7496924e41cc46b1605
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Feb 22 04:39:57 EST 2017

hugolib: Enable leaktest

See #3082

--- a/hugolib/hugo_sites_build_test.go
+++ b/hugolib/hugo_sites_build_test.go
@@ -10,7 +10,7 @@
 	"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 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)