chore: refactoring (#2182)

This commit is contained in:
Kevin Wan
2022-07-22 23:16:38 +08:00
committed by GitHub
parent 34eb3fc12e
commit 92145b56dc
3 changed files with 14 additions and 14 deletions

View File

@@ -51,7 +51,7 @@ func TestSizeLimitRotateRuleOutdatedFiles(t *testing.T) {
func TestSizeLimitRotateRuleShallRotate(t *testing.T) {
var rule SizeLimitRotateRule
rule.rotatedTime = time.Now().Add(time.Hour * 24).Format(rfc3339DateFormat)
rule.rotatedTime = time.Now().Add(time.Hour * 24).Format(fileTimeFormat)
rule.maxSize = 0
assert.False(t, rule.ShallRotate(0))
rule.maxSize = 100