From a9269c2c074166a02e75f53e280c81175c4f1f91 Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Mon, 2 Nov 2020 14:31:19 -0600 Subject: [PATCH] wait_for_namespace should take two args (#9086) --- test/integration/connect/envoy/helpers.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/connect/envoy/helpers.bash b/test/integration/connect/envoy/helpers.bash index cbc2a57715..ff1d0bc0f9 100755 --- a/test/integration/connect/envoy/helpers.bash +++ b/test/integration/connect/envoy/helpers.bash @@ -575,8 +575,9 @@ function read_config_entry { } function wait_for_namespace { - local DC=${1:-primary} - retry_default docker_curl "$DC" -sLf "http://127.0.0.1:8500/v1/namespace/${1}" >/dev/null + local NS="${1}" + local DC=${2:-primary} + retry_default docker_curl "$DC" -sLf "http://127.0.0.1:8500/v1/namespace/${NS}" >/dev/null } function wait_for_config_entry {