aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/testhelpers_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-05-24 09:26:30 +0200
committerBjørn Erik Pedersen <[email protected]>2023-05-24 12:42:56 +0200
commit9a235d0afca6125f7cf222ae0d66a5fe91ae8694 (patch)
tree00d0b6b3edfda3e7e2ca90f0e6def9e64d301912 /hugolib/testhelpers_test.go
parent99407c39ba92b3bfc569a505b05033e04b242e8d (diff)
downloadhugo-9a235d0afca6125f7cf222ae0d66a5fe91ae8694.tar.gz
hugo-9a235d0afca6125f7cf222ae0d66a5fe91ae8694.zip
Fix regression with site.IsServer when not running a server
Fixes #11006
Diffstat (limited to 'hugolib/testhelpers_test.go')
-rw-r--r--hugolib/testhelpers_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go
index 0ba861fdb..7cf1a5596 100644
--- a/hugolib/testhelpers_test.go
+++ b/hugolib/testhelpers_test.go
@@ -486,6 +486,7 @@ func (s *sitesBuilder) LoadConfig() error {
flags := config.New()
flags.Set("internal", map[string]any{
"running": s.running,
+ "watch": s.running,
})
if s.workingDir != "" {