From 9bd4236e1b3bee332439eef50e12d4481340c3eb Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 27 Apr 2018 08:39:36 -0600 Subject: [PATCH] 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 --- hugolib/page_bundler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/page_bundler_test.go b/hugolib/page_bundler_test.go index 2e0ca9e4..2d83e3af 100644 --- a/hugolib/page_bundler_test.go +++ b/hugolib/page_bundler_test.go @@ -75,7 +75,7 @@ func TestPageBundlerSiteRegular(t *testing.T) { 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} -- 2.30.2