From 2f31c1571f134b542aa798c2632697765e6d0a8e Mon Sep 17 00:00:00 2001 From: jccint Date: Sun, 27 Apr 2025 01:26:17 +0200 Subject: [PATCH] test(settings): take into account the OS specific file separator --- internal/config/settings_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/config/settings_test.go b/internal/config/settings_test.go index 59f083023..2184ae96c 100644 --- a/internal/config/settings_test.go +++ b/internal/config/settings_test.go @@ -1,6 +1,7 @@ package config import ( + "path/filepath" "testing" "github.com/stretchr/testify/assert" @@ -14,7 +15,7 @@ func Test_Settings_String(t *testing.T) { s := defaultSettings.String() - const expected = `Settings summary: + var expected = `Settings summary: ├── HTTP client | └── Timeout: 20s ├── Update @@ -40,7 +41,7 @@ func Test_Settings_String(t *testing.T) { | └── Server is disabled ├── Paths | ├── Data directory: ./data -| ├── Config file: data/config.json +| ├── Config file: ` + filepath.Join("data", "config.json") + ` | └── Umask: system default ├── Backup: disabled └── Logger