From: Bjørn Erik Pedersen Date: Tue, 30 May 2017 13:38:10 +0000 (+0300) Subject: hugolib: Adjust timeout for leaktest X-Git-Tag: v0.22~40 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=828427ef;p=brevno-suite%2Fhugo hugolib: Adjust timeout for leaktest --- diff --git a/hugolib/hugo_sites_build_test.go b/hugolib/hugo_sites_build_test.go index b925b323..5f3d1b9c 100644 --- a/hugolib/hugo_sites_build_test.go +++ b/hugolib/hugo_sites_build_test.go @@ -9,6 +9,7 @@ import ( "html/template" "os" "path/filepath" + "time" "github.com/fortytw2/leaktest" "github.com/fsnotify/fsnotify" @@ -391,7 +392,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.CheckTimeout(t, 10*time.Second)() siteConfig := testSiteConfig{Fs: afero.NewMemMapFs(), DefaultContentLanguage: "fr", DefaultContentLanguageInSubdir: true} sites := createMultiTestSites(t, siteConfig, multiSiteTOMLConfigTemplate)