cleanup(netx): stop using most netxlite resolver internals (#797)
This diff modifies netx to stop using most netxlite resolver internals but the internal function that creates a new, unwrapped system resolver, which will be dealt with in a subsequent pull request. See https://github.com/ooni/probe/issues/2121
This commit is contained in:
parent
07c0b08505
commit
2d3d5d9cdc
5 changed files with 18 additions and 243 deletions
|
|
@ -62,6 +62,10 @@ func TestBogonResolver(t *testing.T) {
|
|||
if !errors.Is(err, ErrDNSBogon) {
|
||||
t.Fatal("unexpected err", err)
|
||||
}
|
||||
var ew *ErrWrapper
|
||||
if !errors.As(err, &ew) {
|
||||
t.Fatal("error has not been wrapped")
|
||||
}
|
||||
if len(addrs) > 0 {
|
||||
t.Fatal("expected no addrs")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue