From 828427ef522e8c259eea520e76a1e3655b801b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 30 May 2017 16:38:10 +0300 Subject: [PATCH] hugolib: Adjust timeout for leaktest --- hugolib/hugo_sites_build_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hugolib/hugo_sites_build_test.go b/hugolib/hugo_sites_build_test.go index b925b323d..5f3d1b9c0 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)