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:
Simone Basso
2021-06-23 16:06:02 +02:00
committed by GitHub
parent 8a0beee808
commit 16aa8e5538
16 changed files with 44 additions and 44 deletions
+3 -3
View File
@@ -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
},