Fix flaky test_keeper_snapshots

This commit is contained in:
Antonio Andelic 2023-04-05 08:56:01 +00:00
parent e428ed5543
commit f7586e38ed

View File

@ -57,9 +57,10 @@ def restart_clickhouse():
def test_state_after_restart(started_cluster):
keeper_utils.wait_until_connected(started_cluster, node)
node_zk = None
node_zk2 = None
try:
node_zk = None
node_zk2 = None
node_zk = get_connection_zk("node")
node_zk.create("/test_state_after_restart", b"somevalue")
@ -108,9 +109,10 @@ def test_state_after_restart(started_cluster):
def test_ephemeral_after_restart(started_cluster):
keeper_utils.wait_until_connected(started_cluster, node)
node_zk = None
node_zk2 = None
try:
node_zk = None
node_zk2 = None
node_zk = get_connection_zk("node")
session_id = node_zk._session_id