mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Fix: test failed due to Policy.AutoName
This commit is contained in:
@@ -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