From 197ed67ea75390b9ef712491fc1dd454bb7d73d6 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 16 Mar 2023 14:11:24 -0400 Subject: [PATCH] Add in query options for catalog service existing in a specific (#16652) namespace when creating service for tests --- .../consul-container/test/gateways/gateway_endpoint_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/consul-container/test/gateways/gateway_endpoint_test.go b/test/integration/consul-container/test/gateways/gateway_endpoint_test.go index c73b7e4a57..d79bf7c65e 100644 --- a/test/integration/consul-container/test/gateways/gateway_endpoint_test.go +++ b/test/integration/consul-container/test/gateways/gateway_endpoint_test.go @@ -206,8 +206,8 @@ func createService(t *testing.T, cluster *libcluster.Cluster, serviceOpts *libse service, _, err := libservice.CreateAndRegisterStaticServerAndSidecar(node, serviceOpts, containerArgs...) require.NoError(t, err) - libassert.CatalogServiceExists(t, client, serviceOpts.Name+"-sidecar-proxy", nil) - libassert.CatalogServiceExists(t, client, serviceOpts.Name, nil) + libassert.CatalogServiceExists(t, client, serviceOpts.Name+"-sidecar-proxy", &api.QueryOptions{Namespace: serviceOpts.Namespace}) + libassert.CatalogServiceExists(t, client, serviceOpts.Name, &api.QueryOptions{Namespace: serviceOpts.Namespace}) return service }