package dialer_test import ( "net" "net/http" "testing" "github.com/ooni/probe-cli/v3/internal/engine/netx" "github.com/ooni/probe-cli/v3/internal/engine/netx/dialer" ) func TestGood(t *testing.T) { txp := netx.NewHTTPTransport(netx.Config{ Dialer: dialer.ShapingDialer{ Dialer: new(net.Dialer), }, }) client := &http.Client{Transport: txp} resp, err := client.Get("https://www.google.com/") if err != nil { t.Fatal(err) } if resp == nil { t.Fatal("expected nil response here") } resp.Body.Close() }