ref: 828427ef522e8c259eea520e76a1e3655b801b13
parent: ce624cc7d34c8b78aa482ae92a46d2cadc145b73
author: Bjørn Erik Pedersen <[email protected]>
date: Tue May 30 12:38:10 EDT 2017
hugolib: Adjust timeout for leaktest
--- a/hugolib/hugo_sites_build_test.go
+++ b/hugolib/hugo_sites_build_test.go
@@ -9,6 +9,7 @@
"html/template"
"os"
"path/filepath"
+ "time"
"github.com/fortytw2/leaktest"
"github.com/fsnotify/fsnotify"
@@ -391,7 +392,7 @@
func TestMultiSitesRebuild(t *testing.T) {
// t.Parallel() not supported, see https://github.com/fortytw2/leaktest/issues/4
- defer leaktest.Check(t)()
+ defer leaktest.CheckTimeout(t, 10*time.Second)()
siteConfig := testSiteConfig{Fs: afero.NewMemMapFs(), DefaultContentLanguage: "fr", DefaultContentLanguageInSubdir: true}
sites := createMultiTestSites(t, siteConfig, multiSiteTOMLConfigTemplate)