Optimize priority failover behave tests (#3004)

1. get rid of useless sleep calls
2. call `POST /failover` on the node where we want to failover to
This commit is contained in:
Alexander Kukushkin
2024-01-15 12:03:14 +01:00
committed by GitHub
parent 5d8c2fb559
commit 2ac1efea54
2 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ def replication_works(context, primary, replica, time_limit):
""".format(str(time()).replace('.', '_').replace(',', '_'), primary, replica, time_limit))
@then('there is one of {message_list} {level:w} in the {node} patroni log after {timeout:d} seconds')
@step('there is one of {message_list} {level:w} in the {node} patroni log after {timeout:d} seconds')
def check_patroni_log(context, message_list, level, node, timeout):
timeout *= context.timeout_multiplier
message_list = json.loads(message_list)