From e739aa8fd0d29ce36cc9240de29ed434b74d9fb9 Mon Sep 17 00:00:00 2001 From: Stavros Date: Sat, 9 May 2026 17:18:58 +0300 Subject: [PATCH] tests: use filepath join instead of path join --- internal/test/test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/test/test.go b/internal/test/test.go index 3ee17a47..73ff5d38 100644 --- a/internal/test/test.go +++ b/internal/test/test.go @@ -1,7 +1,7 @@ package test import ( - "path" + "path/filepath" "testing" "github.com/stretchr/testify/require" @@ -33,8 +33,8 @@ func CreateTestConfigs(t *testing.T) (model.Config, model.RuntimeConfig) { Name: "Test Client", }, }, - PrivateKeyPath: path.Join(tempDir, "key.pem"), - PublicKeyPath: path.Join(tempDir, "key.pub"), + PrivateKeyPath: filepath.Join(tempDir, "key.pem"), + PublicKeyPath: filepath.Join(tempDir, "key.pub"), }, Auth: model.AuthConfig{ SessionExpiry: 10, @@ -42,11 +42,11 @@ func CreateTestConfigs(t *testing.T) (model.Config, model.RuntimeConfig) { LoginMaxRetries: 3, }, Database: model.DatabaseConfig{ - Path: path.Join(tempDir, "test.db"), + Path: filepath.Join(tempDir, "test.db"), }, Resources: model.ResourcesConfig{ Enabled: true, - Path: path.Join(tempDir, "resources"), + Path: filepath.Join(tempDir, "resources"), }, }