shithub: hugo

Download patch

ref: 9bd4236e1b3bee332439eef50e12d4481340c3eb
parent: 4eedb377b60fb6742c97398942a0045ff2a824c4
author: Anthony Fok <[email protected]>
date: Fri Apr 27 04:39:36 EDT 2018

Show site build warning in TestPageBundlerSiteRegular

So that a timeout warning does appear if it does happen
especially on a slow machine with soft floating-point CPU.

Special thanks to @bep for the solution.

See #4672

--- a/hugolib/page_bundler_test.go
+++ b/hugolib/page_bundler_test.go
@@ -75,7 +75,7 @@
 
 				cfg.Set("uglyURLs", ugly)
 
-				s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{})
+				s := buildSingleSite(t, deps.DepsCfg{Logger: newWarningLogger(), Fs: fs, Cfg: cfg}, BuildCfg{})
 
 				th := testHelper{s.Cfg, s.Fs, t}