test: fix failed UT

pull/1519/head
HFO4 2 years ago
parent 63b536e5db
commit 6b0b44f6d0

@ -224,7 +224,7 @@ func (folder *Folder) CopyFolderTo(folderID uint, dstFolder *Folder) (size uint6
} else if IDCache, ok := newIDCache[*folder.ParentID]; ok { } else if IDCache, ok := newIDCache[*folder.ParentID]; ok {
newID = IDCache newID = IDCache
} else { } else {
util.Log().Warning("Failed to get parent folder %q", folder.ParentID) util.Log().Warning("Failed to get parent folder %q", *folder.ParentID)
return size, errors.New("Failed to get parent folder") return size, errors.New("Failed to get parent folder")
} }

@ -52,7 +52,7 @@ const (
var ( var (
// ErrNotEnabled 功能未开启错误 // ErrNotEnabled 功能未开启错误
ErrNotEnabled = serializer.NewError(serializer.CodeFeatureNotEnabled, "", nil) ErrNotEnabled = serializer.NewError(serializer.CodeFeatureNotEnabled, "not enabled", nil)
// ErrUserNotFound 未找到下载任务创建者 // ErrUserNotFound 未找到下载任务创建者
ErrUserNotFound = serializer.NewError(serializer.CodeUserNotFound, "", nil) ErrUserNotFound = serializer.NewError(serializer.CodeUserNotFound, "", nil)
) )

Loading…
Cancel
Save