cleanup(ndt7): remove redundant/unused code (#360)

This commit is contained in:
Simone Basso 2021-06-04 17:44:13 +02:00 committed by GitHub
commit d4d1ac3832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 13 deletions

View file

@ -40,17 +40,6 @@ func TestDiscoverCancelledContext(t *testing.T) {
}
}
type verifyRequestTransport struct {
ExpectedError error
}
func (txp *verifyRequestTransport) RoundTrip(req *http.Request) (*http.Response, error) {
if req.URL.RawQuery != "ip=1.2.3.4" {
return nil, errors.New("invalid req.URL.RawQuery")
}
return nil, txp.ExpectedError
}
func TestDoDownloadWithCancelledContext(t *testing.T) {
m := new(Measurer)
sess := &mockable.Session{