mirror of
https://github.com/astaxie/beego.git
synced 2024-11-24 09:00:54 +00:00
Fix test with new parameters
This commit is contained in:
parent
fe56de06b5
commit
ac3a549187
@ -280,8 +280,13 @@ func testFileRotate(t *testing.T, fn1, fn2 string, daily, hourly bool) {
|
|||||||
fw.hourlyOpenTime = time.Now().Add(-1 * time.Hour)
|
fw.hourlyOpenTime = time.Now().Add(-1 * time.Hour)
|
||||||
fw.hourlyOpenDate = fw.hourlyOpenTime.Day()
|
fw.hourlyOpenDate = fw.hourlyOpenTime.Day()
|
||||||
}
|
}
|
||||||
|
lm := &LogMsg{
|
||||||
|
Msg: "Test message",
|
||||||
|
Level: LevelDebug,
|
||||||
|
When: time.Now(),
|
||||||
|
}
|
||||||
|
|
||||||
fw.WriteMsg(time.Now(), "this is a msg for test", LevelDebug)
|
fw.WriteMsg(lm)
|
||||||
|
|
||||||
for _, file := range []string{fn1, fn2} {
|
for _, file := range []string{fn1, fn2} {
|
||||||
_, err := os.Stat(file)
|
_, err := os.Stat(file)
|
||||||
|
Loading…
Reference in New Issue
Block a user