try fix flaky test_store_cleanup

This commit is contained in:
Alexander Tokmakov 2022-07-18 16:03:06 +02:00
parent 1ced1d11fd
commit dfccb677f5

View File

@ -197,7 +197,10 @@ def test_store_cleanup(started_cluster):
node1.exec_in_container(["mkdir", f"{path_to_data}/store/kek"])
node1.exec_in_container(["touch", f"{path_to_data}/store/12"])
node1.exec_in_container(["mkdir", f"{path_to_data}/store/456"])
try:
node1.exec_in_container(["mkdir", f"{path_to_data}/store/456"])
except Exception as e:
print("Failed to create 456/:", str(e))
node1.exec_in_container(["mkdir", f"{path_to_data}/store/456/testgarbage"])
node1.exec_in_container(
["mkdir", f"{path_to_data}/store/456/30000000-1000-4000-8000-000000000003"]
@ -218,7 +221,7 @@ def test_store_cleanup(started_cluster):
timeout=60,
look_behind_lines=1000,
)
node1.wait_for_log_line("directories from store")
node1.wait_for_log_line("directories from store", look_behind_lines=1000)
store = node1.exec_in_container(["ls", f"{path_to_data}/store"])
assert "100" in store