summaryrefslogtreecommitdiff
path: root/internal/rpc/client_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2024-06-06 14:58:22 +0200
committerGitHub <[email protected]>2024-06-06 14:58:22 +0200
commit1c1abb483d3e00d901d7c6279c8e4d09a5621871 (patch)
treea25db9a21d7c2958997f1d0a92e5bdf3460d05b2 /internal/rpc/client_test.go
parenta049b0bcf48c2063d3b94b536bf4781c50bf4a30 (diff)
parent864aa7bc51f8e8c68f481be6718a79389b754b2d (diff)
[#1929]: feature(config plugin): deprecate env prefix
Diffstat (limited to 'internal/rpc/client_test.go')
-rw-r--r--internal/rpc/client_test.go15
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")