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:
Simone Basso 2022-01-26 12:18:36 +01:00 committed by GitHub
commit ce8ec5b391
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 3 deletions

View file

@ -208,6 +208,7 @@ func TestDNSOverTCP(t *testing.T) {
if txp.Address() != address {
t.Fatal("invalid Address")
}
txp.CloseIdleConnections()
})
t.Run("other functions okay with TLS", func(t *testing.T) {
@ -222,5 +223,6 @@ func TestDNSOverTCP(t *testing.T) {
if txp.Address() != address {
t.Fatal("invalid Address")
}
txp.CloseIdleConnections()
})
}