fix(netxlite/quic): wrap Close (#509)
While there, make sure netxlite has 100% coverage. Part of https://github.com/ooni/probe/issues/1733 and diff has been extracted from https://github.com/ooni/probe-cli/pull/506.
This commit is contained in:
parent
deb1589bdb
commit
273774bb03
3 changed files with 48 additions and 1 deletions
|
|
@ -75,7 +75,12 @@ func TestHTTPTransportLogger(t *testing.T) {
|
|||
},
|
||||
}
|
||||
client := &http.Client{Transport: txp}
|
||||
resp, err := client.Get("https://www.google.com")
|
||||
req, err := http.NewRequest("GET", "https://www.google.com", nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
req.Header.Set("User-Agent", "miniooni/0.1.0-dev")
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue