cleanup(ndt7): remove redundant/unused code (#360)
This commit is contained in:
parent
f271e71c0b
commit
d4d1ac3832
2 changed files with 2 additions and 13 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue