diff --git a/internal/mocks/measuringnetwork.go b/internal/mocks/measuringnetwork.go index 5f320df543..1153abe8b7 100644 --- a/internal/mocks/measuringnetwork.go +++ b/internal/mocks/measuringnetwork.go @@ -2,7 +2,7 @@ package mocks import ( "github.com/ooni/probe-cli/v3/internal/model" - tls "gitlab.com/yawning/utls.git" + utls "gitlab.com/yawning/utls.git" ) // MeasuringNetwork allows mocking [model.MeasuringNetwork]. @@ -19,7 +19,7 @@ type MeasuringNetwork struct { MockNewTLSHandshakerStdlib func(logger model.DebugLogger) model.TLSHandshaker - MockNewTLSHandshakerUTLS func(logger model.DebugLogger, id *tls.ClientHelloID) model.TLSHandshaker + MockNewTLSHandshakerUTLS func(logger model.DebugLogger, id *utls.ClientHelloID) model.TLSHandshaker MockNewUDPListener func() model.UDPListener } @@ -57,7 +57,7 @@ func (mn *MeasuringNetwork) NewTLSHandshakerStdlib(logger model.DebugLogger) mod } // NewTLSHandshakerUTLS implements model.MeasuringNetwork. -func (mn *MeasuringNetwork) NewTLSHandshakerUTLS(logger model.DebugLogger, id *tls.ClientHelloID) model.TLSHandshaker { +func (mn *MeasuringNetwork) NewTLSHandshakerUTLS(logger model.DebugLogger, id *utls.ClientHelloID) model.TLSHandshaker { return mn.MockNewTLSHandshakerUTLS(logger, id) } diff --git a/internal/mocks/measuringnetwork_test.go b/internal/mocks/measuringnetwork_test.go index 6d51465a4b..cdb3d077bb 100644 --- a/internal/mocks/measuringnetwork_test.go +++ b/internal/mocks/measuringnetwork_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/ooni/probe-cli/v3/internal/model" - tls "gitlab.com/yawning/utls.git" + utls "gitlab.com/yawning/utls.git" ) func TestMeasuringN(t *testing.T) { @@ -89,7 +89,7 @@ func TestMeasuringN(t *testing.T) { t.Run("MockNewTLSHandshakerUTLS", func(t *testing.T) { expected := &TLSHandshaker{} mn := &MeasuringNetwork{ - MockNewTLSHandshakerUTLS: func(logger model.DebugLogger, id *tls.ClientHelloID) model.TLSHandshaker { + MockNewTLSHandshakerUTLS: func(logger model.DebugLogger, id *utls.ClientHelloID) model.TLSHandshaker { return expected }, }