fix(reduceErrors): return error when given an empty list (#675)
See https://github.com/ooni/probe/issues/1985 for context. While there, ensure nextlite has 100% of coverage.
This commit is contained in:
parent
4d50dd6d54
commit
ce8ec5b391
5 changed files with 18 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ import (
|
|||
func TestQuirkReduceErrors(t *testing.T) {
|
||||
t.Run("no errors", func(t *testing.T) {
|
||||
result := quirkReduceErrors(nil)
|
||||
if result != nil {
|
||||
if !errors.Is(result, errReduceErrorsEmptyList) {
|
||||
t.Fatal("wrong result")
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue