From 046cb248e0d874818cba59f49c4106e4b551d30f Mon Sep 17 00:00:00 2001 From: two Date: Thu, 26 Jul 2018 15:08:14 +0800 Subject: [PATCH] edit test case --- logs/file_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logs/file_test.go b/logs/file_test.go index ad377f6d..e7c2ca9a 100644 --- a/logs/file_test.go +++ b/logs/file_test.go @@ -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) }