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
17
internal/netxlite/shaping_otherwise_test.go
Normal file
17
internal/netxlite/shaping_otherwise_test.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
//go:build !shaping
|
||||
|
||||
package netxlite
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/ooni/probe-cli/v3/internal/model/mocks"
|
||||
)
|
||||
|
||||
func TestNewShapingDialer(t *testing.T) {
|
||||
in := &mocks.Dialer{}
|
||||
out := NewMaybeShapingDialer(in)
|
||||
if in != out {
|
||||
t.Fatal("expected to see the same pointer")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue