tests: use filepath join instead of path join

This commit is contained in:
Stavros
2026-05-09 17:18:58 +03:00
parent d5009070e3
commit e739aa8fd0
+5 -5
View File
@@ -1,7 +1,7 @@
package test package test
import ( import (
"path" "path/filepath"
"testing" "testing"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
@@ -33,8 +33,8 @@ func CreateTestConfigs(t *testing.T) (model.Config, model.RuntimeConfig) {
Name: "Test Client", Name: "Test Client",
}, },
}, },
PrivateKeyPath: path.Join(tempDir, "key.pem"), PrivateKeyPath: filepath.Join(tempDir, "key.pem"),
PublicKeyPath: path.Join(tempDir, "key.pub"), PublicKeyPath: filepath.Join(tempDir, "key.pub"),
}, },
Auth: model.AuthConfig{ Auth: model.AuthConfig{
SessionExpiry: 10, SessionExpiry: 10,
@@ -42,11 +42,11 @@ func CreateTestConfigs(t *testing.T) (model.Config, model.RuntimeConfig) {
LoginMaxRetries: 3, LoginMaxRetries: 3,
}, },
Database: model.DatabaseConfig{ Database: model.DatabaseConfig{
Path: path.Join(tempDir, "test.db"), Path: filepath.Join(tempDir, "test.db"),
}, },
Resources: model.ResourcesConfig{ Resources: model.ResourcesConfig{
Enabled: true, Enabled: true,
Path: path.Join(tempDir, "resources"), Path: filepath.Join(tempDir, "resources"),
}, },
} }