From 50791bd932f1fff2a27fca2d4e8e1f49f9e491dd Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Tue, 15 Nov 2022 19:27:12 +0800 Subject: [PATCH] [skip e2e]Fix verification of chaos delete (#20604) Signed-off-by: zhuwenxing Signed-off-by: zhuwenxing --- tests/python_client/chaos/test_chaos_apply.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/python_client/chaos/test_chaos_apply.py b/tests/python_client/chaos/test_chaos_apply.py index c300f4287b..6caadd4093 100644 --- a/tests/python_client/chaos/test_chaos_apply.py +++ b/tests/python_client/chaos/test_chaos_apply.py @@ -99,8 +99,10 @@ class TestChaosApply: res = chaos_res.list_all() chaos_list = [r['metadata']['name'] for r in res['items']] # verify the chaos is deleted + sleep(10) + res = chaos_res.list_all() + chaos_list = [r['metadata']['name'] for r in res['items']] assert meta_name not in chaos_list - sleep(2) # wait all pods ready t0 = time.time() log.info(f"wait for pods in namespace {constants.CHAOS_NAMESPACE} with label app.kubernetes.io/instance={meta_name}")