fix(probeservices): use api.ooni.io (#926)
See https://github.com/ooni/probe/issues/2147. Note that this PR also tries to reduce usage of legacy names inside unit/integration tests.
This commit is contained in:
parent
535be51cd1
commit
7df25795c0
12 changed files with 35 additions and 76 deletions
|
|
@ -57,7 +57,7 @@ func TestMeasureWithSystemResolver(t *testing.T) {
|
|||
r := netxlite.NewStdlibResolver(log.Log)
|
||||
defer r.CloseIdleConnections()
|
||||
ctx := context.Background()
|
||||
addrs, err := r.LookupHost(ctx, "antani.ooni.org")
|
||||
addrs, err := r.LookupHost(ctx, "www.ooni.nonexistent")
|
||||
if err == nil || err.Error() != netxlite.FailureDNSNXDOMAINError {
|
||||
t.Fatal("not the error we expected", err)
|
||||
}
|
||||
|
|
@ -75,7 +75,7 @@ func TestMeasureWithSystemResolver(t *testing.T) {
|
|||
// Implementation note: Windows' resolver has caching so back to back tests
|
||||
// will fail unless we query for something that could bypass the cache itself
|
||||
// e.g. a domain containing a few random letters
|
||||
addrs, err := r.LookupHost(ctx, randx.Letters(7)+".ooni.org")
|
||||
addrs, err := r.LookupHost(ctx, randx.Letters(7)+".ooni.nonexistent")
|
||||
if err == nil || err.Error() != netxlite.FailureGenericTimeoutError {
|
||||
t.Fatal("not the error we expected", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue