mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: warnings in unit test
This commit is contained in:
@@ -43,6 +43,12 @@ func TestGetUserByID(t *testing.T) {
|
||||
Policies: "[1]",
|
||||
PolicyList: []uint{1},
|
||||
},
|
||||
Policy: Policy{
|
||||
Model: gorm.Model{
|
||||
ID: 1,
|
||||
},
|
||||
Name: "默认上传策略",
|
||||
},
|
||||
}, user)
|
||||
|
||||
//未找到用户时
|
||||
|
||||
Reference in New Issue
Block a user