Skip to content

Commit e739aa8

Browse files
committed
tests: use filepath join instead of path join
1 parent d500907 commit e739aa8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

internal/test/test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package test
22

33
import (
4-
"path"
4+
"path/filepath"
55
"testing"
66

77
"github.com/stretchr/testify/require"
@@ -33,20 +33,20 @@ func CreateTestConfigs(t *testing.T) (model.Config, model.RuntimeConfig) {
3333
Name: "Test Client",
3434
},
3535
},
36-
PrivateKeyPath: path.Join(tempDir, "key.pem"),
37-
PublicKeyPath: path.Join(tempDir, "key.pub"),
36+
PrivateKeyPath: filepath.Join(tempDir, "key.pem"),
37+
PublicKeyPath: filepath.Join(tempDir, "key.pub"),
3838
},
3939
Auth: model.AuthConfig{
4040
SessionExpiry: 10,
4141
LoginTimeout: 10,
4242
LoginMaxRetries: 3,
4343
},
4444
Database: model.DatabaseConfig{
45-
Path: path.Join(tempDir, "test.db"),
45+
Path: filepath.Join(tempDir, "test.db"),
4646
},
4747
Resources: model.ResourcesConfig{
4848
Enabled: true,
49-
Path: path.Join(tempDir, "resources"),
49+
Path: filepath.Join(tempDir, "resources"),
5050
},
5151
}
5252

0 commit comments

Comments
 (0)