Fix: failed test due to relative path

This commit is contained in:
HFO4
2020-03-12 09:15:30 +08:00
parent 83b292c9ba
commit 37de715541
9 changed files with 17 additions and 30 deletions

View File

@@ -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"))
}