edit test case

This commit is contained in:
two 2018-07-26 15:08:14 +08:00
parent 31c746d9d7
commit 046cb248e0
1 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ func TestFileHourlyRotate_01(t *testing.T) {
func TestFileHourlyRotate_02(t *testing.T) {
fn1 := "rotate_hour.log"
fn2 := "rotate_hour." + time.Now().Add(-1*time.Hour).Format("2006010215") + ".log"
fn2 := "rotate_hour." + time.Now().Add(-1*time.Hour).Format("2006010215") + ".001.log"
testFileRotate(t, fn1, fn2, false, true)
}
@ -222,7 +222,7 @@ func TestFileHourlyRotate_03(t *testing.T) {
func TestFileHourlyRotate_04(t *testing.T) {
fn1 := "rotate_hour.log"
fn2 := "rotate_hour." + time.Now().Add(-1*time.Hour).Format("2006010215") + ".log"
fn2 := "rotate_hour." + time.Now().Add(-1*time.Hour).Format("2006010215") + ".001.log"
testFileHourlyRotate(t, fn1, fn2)
}