mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-31 06:03:06 +02:00
chore: add ROOT_DIR environment variable, refactor
This commit is contained in:
@@ -56,7 +56,7 @@ func TestFileProviderValidate(t *testing.T) {
|
||||
cfg := config.DefaultConfig()
|
||||
if tt.init != nil {
|
||||
for _, filename := range tt.filenames {
|
||||
filepath := path.Join(common.ConfigBasePath, filename)
|
||||
filepath := path.Join(common.ConfigDir, filename)
|
||||
assert.NoError(t, tt.init(filepath))
|
||||
}
|
||||
}
|
||||
@@ -67,7 +67,7 @@ func TestFileProviderValidate(t *testing.T) {
|
||||
})), cfg)
|
||||
if tt.cleanup != nil {
|
||||
for _, filename := range tt.filenames {
|
||||
filepath := path.Join(common.ConfigBasePath, filename)
|
||||
filepath := path.Join(common.ConfigDir, filename)
|
||||
assert.NoError(t, tt.cleanup(filepath))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user