Skip to content

Commit

Permalink
hugolib: Increase default timeout value to 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Nov 25, 2019
1 parent d975a6f commit 367ed97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hugolib/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions hugolib/pagebundler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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{})

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 367ed97

Please sign in to comment.