mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: failed test due to relative path
This commit is contained in:
@@ -14,10 +14,10 @@ func TestInitPanic(t *testing.T) {
|
||||
|
||||
// 日志路径不存在时
|
||||
asserts.NotPanics(func() {
|
||||
Init("not/exist/path")
|
||||
Init("not/exist/path/conf.ini")
|
||||
})
|
||||
|
||||
asserts.True(util.Exists("conf.ini"))
|
||||
asserts.True(util.Exists("not/exist/path/conf.ini"))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user