From 98d7ea82bdefb3f1811e009c8f13fcc3dcd6b393 Mon Sep 17 00:00:00 2001 From: Hans Hasselberg Date: Fri, 25 Sep 2020 17:31:42 +0200 Subject: [PATCH] fix ent error (#8750) --- agent/ui_endpoint_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/ui_endpoint_test.go b/agent/ui_endpoint_test.go index aa27d8603f..35b1ae191e 100644 --- a/agent/ui_endpoint_test.go +++ b/agent/ui_endpoint_test.go @@ -802,5 +802,6 @@ func TestUIEndpoint_modifySummaryForGatewayService_UseRequestedDCInsteadOfConfig sum := ServiceSummary{GatewayConfig: GatewayConfig{}} gwsvc := structs.GatewayService{Service: structs.ServiceName{Name: "test"}, Port: 42} modifySummaryForGatewayService(&cfg, dc, &sum, &gwsvc) - require.Equal(t, "test.ingress.dc2.consul:42", sum.GatewayConfig.Addresses[0]) + expected := serviceCanonicalDNSName("test", "ingress", "dc2", "consul", nil) + ":42" + require.Equal(t, expected, sum.GatewayConfig.Addresses[0]) }