refactor: rename i/e/n/mockablex => i/netxmocks (#397)
Needed to more easily do https://github.com/ooni/probe/issues/1505
This commit is contained in:
parent
8a0beee808
commit
16aa8e5538
16 changed files with 44 additions and 44 deletions
|
|
@ -7,7 +7,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/ooni/probe-cli/v3/internal/atomicx"
|
||||
"github.com/ooni/probe-cli/v3/internal/engine/netx/mockablex"
|
||||
"github.com/ooni/probe-cli/v3/internal/netxmocks"
|
||||
)
|
||||
|
||||
func TestSnowflakeDialerWorks(t *testing.T) {
|
||||
|
|
@ -50,7 +50,7 @@ func TestSnowflakeDialerWorksWithMocks(t *testing.T) {
|
|||
newClientTransport: func(brokerURL, frontDomain string, iceAddresses []string, keepLocalAddresses bool, maxSnowflakes int) (snowflakeTransport, error) {
|
||||
return &mockableSnowflakeTransport{
|
||||
MockDial: func() (net.Conn, error) {
|
||||
return &mockablex.Conn{
|
||||
return &netxmocks.Conn{
|
||||
MockClose: func() error {
|
||||
return nil
|
||||
},
|
||||
|
|
@ -144,7 +144,7 @@ func TestSnowflakeDialerWorksWithWithCancelledContext(t *testing.T) {
|
|||
return &mockableSnowflakeTransport{
|
||||
MockDial: func() (net.Conn, error) {
|
||||
cancel() // cause a cancel before we can really have a conn
|
||||
return &mockablex.Conn{
|
||||
return &netxmocks.Conn{
|
||||
MockClose: func() error {
|
||||
called.Add(1)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue