mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(filters): improve rejection handling (#1776)
* feat(filters): improve rejection handling * fix(filters): rejection tests * fix(filters): size check error rejection
This commit is contained in:
parent
ae779e5461
commit
f029de233f
8 changed files with 586 additions and 311 deletions
|
@ -398,7 +398,7 @@ func TestIndexersParseAndFilter(t *testing.T) {
|
|||
//match, err := filterSvc.CheckFilter(ctx, filter, rls)
|
||||
|
||||
rejections, matchedFilter := filter.CheckFilter(rls)
|
||||
assert.Len(t, rejections, len(filterT.rejections))
|
||||
assert.Equal(t, rejections.Len(), len(filterT.rejections))
|
||||
assert.Equal(t, filterT.match, matchedFilter)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue