summaryrefslogtreecommitdiff
path: root/internal/rpc/client_test.go
diff options
context:
space:
mode:
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..60dd754b 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)
+
+ defer func() { 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)