diff options
author | Valery Piashchynski <[email protected]> | 2023-08-15 22:40:37 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-08-15 22:40:37 +0200 |
commit | 99aed1fd1869338c813e0a6746a90b1ff4d8db77 (patch) | |
tree | 7b8402b2bc257d9fb8db8e9fec2ac45bc6fdec1f | |
parent | 82cd3204c27d4de7bec23b62399d8492ce6aebc4 (diff) | |
parent | 7c8c781d2aac5bd1f7fc356b6e87d2960eafc58e (diff) |
[#1680]: fix: test failures on darwin
-rw-r--r-- | internal/rpc/client_test.go | 6 | ||||
-rw-r--r-- | internal/rpc/test/config_rpc_conn_err.yaml | 2 | ||||
-rw-r--r-- | internal/rpc/test/config_rpc_ok.yaml | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/internal/rpc/client_test.go b/internal/rpc/client_test.go index 71f3ce7b..5c5cb47e 100644 --- a/internal/rpc/client_test.go +++ b/internal/rpc/client_test.go @@ -39,7 +39,7 @@ func TestNewClient_ConnectionError(t *testing.T) { } func TestNewClient_SuccessfullyConnected(t *testing.T) { - l, err := net.Listen("tcp", "127.0.0.1:55555") + l, err := net.Listen("tcp", "127.0.0.1:55554") assert.NoError(t, err) defer func() { assert.NoError(t, l.Close()) }() @@ -53,12 +53,12 @@ func TestNewClient_SuccessfullyConnected(t *testing.T) { } func TestNewClient_SuccessfullyConnectedOverride(t *testing.T) { - l, err := net.Listen("tcp", "127.0.0.1:55555") + l, err := net.Listen("tcp", "127.0.0.1:55554") assert.NoError(t, err) defer func() { assert.NoError(t, l.Close()) }() - c, err := rpc.NewClient("test/config_rpc_empty.yaml", []string{"rpc.listen=tcp://127.0.0.1:55555"}) + c, err := rpc.NewClient("test/config_rpc_empty.yaml", []string{"rpc.listen=tcp://127.0.0.1:55554"}) assert.NotNil(t, c) assert.NoError(t, err) diff --git a/internal/rpc/test/config_rpc_conn_err.yaml b/internal/rpc/test/config_rpc_conn_err.yaml index 706c68a3..c7d31056 100644 --- a/internal/rpc/test/config_rpc_conn_err.yaml +++ b/internal/rpc/test/config_rpc_conn_err.yaml @@ -1,2 +1,2 @@ rpc: - listen: tcp://127.0.0.1:0 + listen: tcp://127.0.0.1:55554 diff --git a/internal/rpc/test/config_rpc_ok.yaml b/internal/rpc/test/config_rpc_ok.yaml index 8b3140ce..c7d31056 100644 --- a/internal/rpc/test/config_rpc_ok.yaml +++ b/internal/rpc/test/config_rpc_ok.yaml @@ -1,2 +1,2 @@ rpc: - listen: tcp://127.0.0.1:55555 + listen: tcp://127.0.0.1:55554 |