cleanup(netxlite): drop the DefaultDialer legacy name (#796)

Part of https://github.com/ooni/probe/issues/2121
This commit is contained in:
Simone Basso
2022-06-05 18:44:17 +02:00
committed by GitHub
parent c6b3889a33
commit 07c0b08505
5 changed files with 37 additions and 7 deletions
@@ -9,6 +9,7 @@ import (
"strings"
"testing"
"github.com/ooni/probe-cli/v3/internal/model"
"github.com/ooni/probe-cli/v3/internal/netxlite"
)
@@ -51,7 +52,7 @@ const requestWithoutDomainName = `{
func TestWorkingAsIntended(t *testing.T) {
handler := Handler{
Client: http.DefaultClient,
Dialer: netxlite.DefaultDialer,
Dialer: netxlite.NewDialerWithStdlibResolver(model.DiscardLogger),
MaxAcceptableBody: 1 << 24,
Resolver: netxlite.NewResolverSystem(),
}