| // Copyright 2015 The Go Authors. |
| // See https://go.googlesource.com/go/+/master/CONTRIBUTORS |
| // Licensed under the same terms as Go itself: |
| // https://go.googlesource.com/go/+/master/LICENSE |
| extNet = flag.Bool("extnet", false, "do external network tests") |
| transportHost = flag.String("transporthost", "http2.golang.org", "hostname to use for TestTransport") |
| insecure = flag.Bool("insecure", false, "insecure TLS dials") |
| func TestTransportExternal(t *testing.T) { |
| t.Skip("skipping external network test") |
| req, _ := http.NewRequest("GET", "https://"+*transportHost+"/", nil) |
| InsecureTLSDial: *insecure, |
| res, err := rt.RoundTrip(req) |