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:
@@ -4,12 +4,12 @@ import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/ooni/probe-cli/v3/internal/engine/netx/mockablex"
|
||||
"github.com/ooni/probe-cli/v3/internal/netxmocks"
|
||||
)
|
||||
|
||||
func TestConnWorksOnSuccess(t *testing.T) {
|
||||
counter := New()
|
||||
underlying := &mockablex.Conn{
|
||||
underlying := &netxmocks.Conn{
|
||||
MockRead: func(b []byte) (int, error) {
|
||||
return 10, nil
|
||||
},
|
||||
@@ -39,7 +39,7 @@ func TestConnWorksOnFailure(t *testing.T) {
|
||||
readError := errors.New("read error")
|
||||
writeError := errors.New("write error")
|
||||
counter := New()
|
||||
underlying := &mockablex.Conn{
|
||||
underlying := &netxmocks.Conn{
|
||||
MockRead: func(b []byte) (int, error) {
|
||||
return 0, readError
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user