From 5a8da0e921d5e0ca446e53151c712d87104f3afc Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Sun, 3 Jul 2022 12:20:18 +0800 Subject: [PATCH] [skip e2e]Fix connection (#18024) Signed-off-by: zhuwenxing --- tests/python_client/chaos/chaos_commons.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/python_client/chaos/chaos_commons.py b/tests/python_client/chaos/chaos_commons.py index eb0851e4a0..4d99b0cf2c 100644 --- a/tests/python_client/chaos/chaos_commons.py +++ b/tests/python_client/chaos/chaos_commons.py @@ -70,9 +70,7 @@ def get_chaos_yamls(): def reconnect(connections, alias='default'): """trying to connect by connection alias""" - res = connections.get_connection_addr(alias) - connections.remove_connection(alias) - return connections.connect(alias, host=res["host"], port=res["port"]) + return connections.connect(alias) def assert_statistic(checkers, expectations={}):