From 14a4e4083cadbc339fc4074005595e8f0ac46f27 Mon Sep 17 00:00:00 2001 From: dragondriver Date: Wed, 15 Dec 2021 10:39:24 +0800 Subject: [PATCH] Optimize namespace using of choas script (#13372) Signed-off-by: dragondriver --- tests/python_client/chaos/chaos_test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/python_client/chaos/chaos_test.sh b/tests/python_client/chaos/chaos_test.sh index 810f85963c..d8d8545a51 100644 --- a/tests/python_client/chaos/chaos_test.sh +++ b/tests/python_client/chaos/chaos_test.sh @@ -48,8 +48,8 @@ then fi # wait all pod ready -kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${release} -n chaos-testing --timeout=360s -kubectl wait --for=condition=Ready pod -l release=${release} -n chaos-testing --timeout=360s +kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${release} -n ${ns} --timeout=360s +kubectl wait --for=condition=Ready pod -l release=${release} -n ${ns} --timeout=360s popd @@ -87,8 +87,8 @@ then fi sleep 30 echo "start running e2e test" -kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${release} -n chaos-testing --timeout=360s -kubectl wait --for=condition=Ready pod -l release=${release} -n chaos-testing --timeout=360s +kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${release} -n ${ns} --timeout=360s +kubectl wait --for=condition=Ready pod -l release=${release} -n ${ns} --timeout=360s pytest -s -v ../testcases/test_e2e.py --host "$host" --log-cli-level=INFO --capture=no || echo "e2e test fail" python scripts/hello_milvus.py --host "$host" || echo "e2e test fail"