summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorShyim <[email protected]>2023-08-15 22:15:30 +0200
committerGitHub <[email protected]>2023-08-15 22:15:30 +0200
commit7c8c781d2aac5bd1f7fc356b6e87d2960eafc58e (patch)
tree7b8402b2bc257d9fb8db8e9fec2ac45bc6fdec1f /internal
parent82cd3204c27d4de7bec23b62399d8492ce6aebc4 (diff)
fix: test failures on darwin
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