Commit f9fe89ff authored by astaxie's avatar astaxie

fix the file rotate test case issues

parent 9ab7466d
......@@ -103,7 +103,7 @@ func TestFileRotate(t *testing.T) {
log.Critical("critical")
log.Emergency("emergency")
time.Sleep(time.Second * 4)
rotatename := "test3.log" + fmt.Sprintf(".%s.%03d", time.Now().Format("2006-01-02"), 1)
rotatename := "test3" + fmt.Sprintf(".%s.%03d", time.Now().Format("2006-01-02"), 1) + ".log"
b, err := exists(rotatename)
if !b || err != nil {
t.Fatal("rotate not generated")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment