Fix: test failed due to Policy.AutoName

This commit is contained in:
HFO4 committed 2019-11-19 17:20:59 +08:00
1 parent 88a543ef74
commit 20ea86eaf6
5 files changed
+49 -1

No files matched your search

+3 -1
View File
@@ -76,7 +76,9 @@ func TestPolicy_GeneratePath(t *testing.T) {
func TestPolicy_GenerateFileName(t *testing.T) {
asserts := assert.New(t)
testPolicy := Policy{}
testPolicy := Policy{
AutoRename: true,
}
testPolicy.FileNameRule = "{randomkey16}"
asserts.Len(testPolicy.GenerateFileName(1, "123.txt"), 16)