test(config): take into account the OS specific file separator (#985)

This commit is contained in:
jccint
2026-01-13 18:42:53 +01:00
committed by GitHub
parent 01d3cd1383
commit f2adf3fc20

View File

@@ -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:
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