diff --git a/tests/python_client/chaos/chaos_commons.py b/tests/python_client/chaos/chaos_commons.py index cac6c78663a4acc7199d96176484a59c6440e5c1..732a9b6a5f19c2dc9987c60f8ede382705c94bdd 100644 --- a/tests/python_client/chaos/chaos_commons.py +++ b/tests/python_client/chaos/chaos_commons.py @@ -69,4 +69,6 @@ def get_chaos_yamls(): def reconnect(connections, alias='default'): """trying to connect by connection alias""" - return connections.connect(alias=alias) + res = connections.get_connection_addr(alias) + connections.remove_connection(alias) + return connections.connect(alias, host=res["host"], port=res["port"])