hugolib: Increase leaktest timeout
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 31 May 2017 10:23:22 +0000 (13:23 +0300)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 31 May 2017 10:23:22 +0000 (13:23 +0300)
To try to less flaky test.

hugolib/hugo_sites_build_test.go

index 5f3d1b9c0e943d2e18680713e54625abc9cfa17e..0917817cc487f8c255c6999ab4c3f12ded62e643 100644 (file)
@@ -392,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.CheckTimeout(t, 10*time.Second)()
+       defer leaktest.CheckTimeout(t, 20*time.Second)()
 
        siteConfig := testSiteConfig{Fs: afero.NewMemMapFs(), DefaultContentLanguage: "fr", DefaultContentLanguageInSubdir: true}
        sites := createMultiTestSites(t, siteConfig, multiSiteTOMLConfigTemplate)