hugolib: Bump leaktest timeout to 30 seconds

To try to make it less flaky.
This commit is contained in:
Bjørn Erik Pedersen 2017-06-02 16:50:44 +02:00
parent 4e00bb7fdd
commit b37d959408

View file

@ -392,7 +392,7 @@ func doTestMultiSitesBuild(t *testing.T, configTemplate, configSuffix string) {
func TestMultiSitesRebuild(t *testing.T) { func TestMultiSitesRebuild(t *testing.T) {
// t.Parallel() not supported, see https://github.com/fortytw2/leaktest/issues/4 // t.Parallel() not supported, see https://github.com/fortytw2/leaktest/issues/4
defer leaktest.CheckTimeout(t, 20*time.Second)() defer leaktest.CheckTimeout(t, 30*time.Second)()
siteConfig := testSiteConfig{Fs: afero.NewMemMapFs(), DefaultContentLanguage: "fr", DefaultContentLanguageInSubdir: true} siteConfig := testSiteConfig{Fs: afero.NewMemMapFs(), DefaultContentLanguage: "fr", DefaultContentLanguageInSubdir: true}
sites := createMultiTestSites(t, siteConfig, multiSiteTOMLConfigTemplate) sites := createMultiTestSites(t, siteConfig, multiSiteTOMLConfigTemplate)