mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-05-10 14:28:12 +00:00
tests: use filepath join instead of path join
This commit is contained in:
@@ -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"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user