Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-11-25 12:37:49 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-11-25 20:59:06 +0300
commita8e9f8389a61471fa372c815b216511201b56823 (patch)
tree514a1cb19ef6aa1d057f8f76bb20b7055cf1fbba /hugolib
parent03e2d7462dec17c2f623a13db709f9efc88182af (diff)
hugolib: Increase default timeout value to 30s
Fixes #6502
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/config.go2
-rw-r--r--hugolib/pagebundler_test.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 133d126d6..1bed9c0d9 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -620,7 +620,7 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
v.SetDefault("disableAliases", false)
v.SetDefault("debug", false)
v.SetDefault("disableFastRender", false)
- v.SetDefault("timeout", 15000) // 15 seconds
+ v.SetDefault("timeout", 30000) // 30 seconds
v.SetDefault("enableInlineShortcodes", false)
return nil
diff --git a/hugolib/pagebundler_test.go b/hugolib/pagebundler_test.go
index eb36700a2..c76cc6a77 100644
--- a/hugolib/pagebundler_test.go
+++ b/hugolib/pagebundler_test.go
@@ -64,7 +64,7 @@ func TestPageBundlerSiteRegular(t *testing.T) {
if canonify {
relURLBase = ""
}
- fs, cfg := newTestBundleSources(t)
+ fs, cfg := newTestBundleSources(c)
cfg.Set("baseURL", baseURL)
cfg.Set("canonifyURLs", canonify)
@@ -92,7 +92,7 @@ func TestPageBundlerSiteRegular(t *testing.T) {
cfg.Set("uglyURLs", ugly)
- b := newTestSitesBuilderFromDepsCfg(t, deps.DepsCfg{Logger: loggers.NewErrorLogger(), Fs: fs, Cfg: cfg}).WithNothingAdded()
+ b := newTestSitesBuilderFromDepsCfg(c, deps.DepsCfg{Logger: loggers.NewErrorLogger(), Fs: fs, Cfg: cfg}).WithNothingAdded()
b.Build(BuildCfg{})
@@ -672,7 +672,7 @@ Single content.
}
-func newTestBundleSources(t *testing.T) (*hugofs.Fs, *viper.Viper) {
+func newTestBundleSources(t testing.TB) (*hugofs.Fs, *viper.Viper) {
cfg, fs := newTestCfgBasic()
c := qt.New(t)