hugolib: Adjust timeout for leaktest

This commit is contained in:
Bjørn Erik Pedersen 2017-05-30 16:38:10 +03:00
parent ce624cc7d3
commit 828427ef52

View 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)