hugolib: Adjust timeout for leaktest
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 30 May 2017 13:38:10 +0000 (16:38 +0300)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 30 May 2017 13:38:10 +0000 (16:38 +0300)
hugolib/hugo_sites_build_test.go

index b925b323de153a7780c8ee96cf1fc168703e2911..5f3d1b9c0e943d2e18680713e54625abc9cfa17e 100644 (file)
@@ -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)