mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-17 22:58:07 +00:00
Fix: test failed due to Policy.AutoName
This commit is contained in:
1 parent
88a543ef74
commit
20ea86eaf6
5 files changed
+49
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user