summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/rpc/client_test.go6
-rw-r--r--internal/rpc/test/config_rpc_conn_err.yaml2
-rw-r--r--internal/rpc/test/config_rpc_ok.yaml2
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