summaryrefslogtreecommitdiff
path: root/internal/rpc/client_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2024-11-22 23:40:10 +0100
committerGitHub <[email protected]>2024-11-22 23:40:10 +0100
commitdfb71afb844365a1fc0c819235f64a2417606a33 (patch)
tree9df5c495a93c60d1d0f7053e0448b7e7d7d06b64 /internal/rpc/client_test.go
parentbd93d5c005b48a086646145827e302e2fd5d5872 (diff)
parent642e83ef2771ef6b99571626ecc188c9e41aeeb7 (diff)
[#2063]: fix: properly parse includes outside the Configuration plugin
Diffstat (limited to 'internal/rpc/client_test.go')
-rw-r--r--internal/rpc/client_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/rpc/client_test.go b/internal/rpc/client_test.go
index 453491ff..4a060f33 100644
--- a/internal/rpc/client_test.go
+++ b/internal/rpc/client_test.go
@@ -52,6 +52,20 @@ func TestNewClient_SuccessfullyConnected(t *testing.T) {
defer func() { assert.NoError(t, c.Close()) }()
}
+func TestNewClient_WithIncludes(t *testing.T) {
+ l, err := net.Listen("tcp", "127.0.0.1:6010")
+ assert.NoError(t, err)
+
+ defer func() { assert.NoError(t, l.Close()) }()
+
+ c, err := rpc.NewClient("test/include1/.rr.yaml", nil)
+
+ assert.NotNil(t, c)
+ assert.NoError(t, err)
+
+ assert.NoError(t, c.Close())
+}
+
func TestNewClient_SuccessfullyConnectedOverride(t *testing.T) {
l, err := net.Listen("tcp", "127.0.0.1:55554")
assert.NoError(t, err)