diff --git a/agent/consul/internal_endpoint_test.go b/agent/consul/internal_endpoint_test.go
index <HASH>..<HASH> 100644
--- a/agent/consul/internal_endpoint_test.go
+++ b/agent/consul/internal_endpoint_test.go
@@ -605,13 +605,13 @@ func TestInternal_ServiceDump(t *testing.T) {
 		// so the response should be the same in all subtests
 		expectedGW := structs.GatewayServices{
 			{
-				Service:     structs.ServiceName{Name: "api"},
-				Gateway:     structs.ServiceName{Name: "terminating-gateway"},
+				Service:     structs.NewServiceName("api", nil),
+				Gateway:     structs.NewServiceName("terminating-gateway", nil),
 				GatewayKind: structs.ServiceKindTerminatingGateway,
 			},
 			{
-				Service:     structs.ServiceName{Name: "cache"},
-				Gateway:     structs.ServiceName{Name: "terminating-gateway"},
+				Service:     structs.NewServiceName("cache", nil),
+				Gateway:     structs.NewServiceName("terminating-gateway", nil),
 				GatewayKind: structs.ServiceKindTerminatingGateway,
 			},
 		}
ensure these tests work fine with namespaces in enterprise (#<I>)