Commit 5776c201 authored by Mikio Hara's avatar Mikio Hara

net/http: gofmt -w -s

Change-Id: I7e07888e90c7449f119e74b97995efcd7feef76e
Reviewed-on: https://go-review.googlesource.com/22682Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent ade0eb2f
......@@ -3234,7 +3234,7 @@ func testTransportEventTrace(t *testing.T, noHooks bool) {
t.Errorf("unexpected DNS host lookup for %q", host)
return nil, nil
}
return []net.IPAddr{net.IPAddr{IP: net.ParseIP(ip)}}, nil
return []net.IPAddr{{IP: net.ParseIP(ip)}}, nil
})
req, _ := NewRequest("POST", "http://dns-is-faked.golang:"+port, strings.NewReader("some body"))
......@@ -3321,7 +3321,7 @@ func TestTransportMaxIdleConns(t *testing.T) {
}
c := &Client{Transport: tr}
ctx := context.WithValue(context.Background(), nettrace.LookupIPAltResolverKey{}, func(ctx context.Context, host string) ([]net.IPAddr, error) {
return []net.IPAddr{net.IPAddr{IP: net.ParseIP(ip)}}, nil
return []net.IPAddr{{IP: net.ParseIP(ip)}}, nil
})
hitHost := func(n int) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment