mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
Add cleanup after test to fix flaky tests
This commit is contained in:
parent
305f27c4aa
commit
030f58f79e
@ -170,8 +170,6 @@ def test_disks_app_func_ls(started_cluster):
|
||||
def test_disks_app_func_cp(started_cluster):
|
||||
source = cluster.instances["disks_app_test"]
|
||||
|
||||
init_data(source)
|
||||
|
||||
write(source, "test1", "path1")
|
||||
|
||||
source.exec_in_container(
|
||||
@ -227,8 +225,6 @@ def test_disks_app_func_ln(started_cluster):
|
||||
def test_disks_app_func_rm(started_cluster):
|
||||
source = cluster.instances["disks_app_test"]
|
||||
|
||||
init_data(source)
|
||||
|
||||
write(source, "test2", "path3")
|
||||
|
||||
out = ls(source, "test2", ".")
|
||||
@ -270,6 +266,8 @@ def test_disks_app_func_rm_shared_recursive(started_cluster):
|
||||
out = ls(source, "test3", ". --recursive")
|
||||
assert out == ".:\n\n"
|
||||
|
||||
remove(source, "test3", ". --recursive")
|
||||
|
||||
|
||||
def test_disks_app_func_mv(started_cluster):
|
||||
source = cluster.instances["disks_app_test"]
|
||||
@ -299,6 +297,8 @@ def test_disks_app_func_mv(started_cluster):
|
||||
assert "old_store" in files
|
||||
assert "store" not in files
|
||||
|
||||
remove(source, "test1", "./old_store --recursive")
|
||||
|
||||
|
||||
def test_disks_app_func_read_write(started_cluster):
|
||||
source = cluster.instances["disks_app_test"]
|
||||
|
Loading…
Reference in New Issue
Block a user