refactor: only use shaping dialer for ndt7 and dash (#754)
See https://github.com/ooni/probe/issues/2112 for context. While there, run `go fix -fix buildtag ./...`
This commit is contained in:
parent
b68b8e1e8f
commit
6924d1ad81
17 changed files with 126 additions and 65 deletions
|
|
@ -18,11 +18,7 @@ func TestNewCreatesTheExpectedChain(t *testing.T) {
|
|||
ProxyURL: &url.URL{},
|
||||
ReadWriteSaver: saver,
|
||||
}, netxlite.DefaultResolver)
|
||||
shd, ok := dlr.(*shapingDialer)
|
||||
if !ok {
|
||||
t.Fatal("not a shapingDialer")
|
||||
}
|
||||
bcd, ok := shd.Dialer.(*byteCounterDialer)
|
||||
bcd, ok := dlr.(*byteCounterDialer)
|
||||
if !ok {
|
||||
t.Fatal("not a byteCounterDialer")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue