diff options
author | Valery Piashchynski <[email protected]> | 2024-06-03 12:56:42 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2024-06-03 12:56:42 +0200 |
commit | 959cd326fb5a0992fee585d9b6aec7dcb6024963 (patch) | |
tree | 7a1985a9f2968dcba4f981a5b0a8a36a67e00823 /internal | |
parent | 97d25a048a0ec4d8c283fb28fcdf152e3615c3de (diff) |
chore: update tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'internal')
-rw-r--r-- | internal/rpc/client_test.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/internal/rpc/client_test.go b/internal/rpc/client_test.go index 9bd974a9..0bc11da4 100644 --- a/internal/rpc/client_test.go +++ b/internal/rpc/client_test.go @@ -66,21 +66,6 @@ func TestNewClient_SuccessfullyConnectedOverride(t *testing.T) { defer func() { assert.NoError(t, c.Close()) }() } -func TestNewClient_SuccessfullyConnectedEnv(t *testing.T) { - l, err := net.Listen("tcp", "127.0.0.1:55556") - assert.NoError(t, err) - - defer func() { assert.NoError(t, l.Close()) }() - - require.NoError(t, os.Setenv("RR_RPC_LISTEN", "tcp://127.0.0.1:55556")) - c, err := rpc.NewClient("test/config_rpc_ok.yaml", nil) - - assert.NotNil(t, c) - assert.NoError(t, err) - - defer func() { assert.NoError(t, c.Close()) }() -} - // ${} syntax func TestNewClient_SuccessfullyConnectedEnvDollarSyntax(t *testing.T) { l, err := net.Listen("tcp", "127.0.0.1:55556") |