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 package config
import ( import (
"path/filepath"
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
@@ -14,7 +15,7 @@ func Test_Settings_String(t *testing.T) {
s := defaultSettings.String() s := defaultSettings.String()
const expected = `Settings summary: expected := `Settings summary:
├── HTTP client ├── HTTP client
| └── Timeout: 20s | └── Timeout: 20s
├── Update ├── Update
@@ -40,7 +41,7 @@ func Test_Settings_String(t *testing.T) {
| └── Server is disabled | └── Server is disabled
├── Paths ├── Paths
| ├── Data directory: ./data | ├── Data directory: ./data
| ├── Config file: data/config.json | ├── Config file: ` + filepath.Join("data", "config.json") + `
| └── Umask: system default | └── Umask: system default
├── Backup: disabled ├── Backup: disabled
└── Logger └── Logger