From 6cd0784e447f18e009cbbf30de471e486f7cf356 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Sat, 8 Jun 2024 11:52:22 +0200 Subject: Implement defer Closes #8086 Closes #12589 --- modules/client_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/client_test.go') diff --git a/modules/client_test.go b/modules/client_test.go index ea910580f..d727c4586 100644 --- a/modules/client_test.go +++ b/modules/client_test.go @@ -51,12 +51,16 @@ github.com/gohugoio/hugoTestModules1_darwin/modh2_2@v1.4.0 github.com/gohugoio/h themesDir := filepath.Join(workingDir, "themes") err = os.Mkdir(themesDir, 0o777) c.Assert(err, qt.IsNil) + publishDir := filepath.Join(workingDir, "public") + err = os.Mkdir(publishDir, 0o777) + c.Assert(err, qt.IsNil) ccfg := ClientConfig{ Fs: hugofs.Os, - WorkingDir: workingDir, CacheDir: filepath.Join(workingDir, "modcache"), + WorkingDir: workingDir, ThemesDir: themesDir, + PublishDir: publishDir, Exec: hexec.New(security.DefaultConfig), } -- cgit v1.2.3