Delete object after put to container

Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
This commit is contained in:
Dmitriy Zayakin 2023-06-19 07:43:48 +03:00 committed by Andrey Berezin
parent 9d5f0d2235
commit 10da8ae15e

View file

@ -85,11 +85,11 @@ class TestFailoverServer(ClusterTestBase):
for _ in range(count_object): for _ in range(count_object):
object_list.append(cont.generate_object(size=random.choice(object_size))) object_list.append(cont.generate_object(size=random.choice(object_size)))
yield object_list
for storage_object in object_list: for storage_object in object_list:
os.remove(storage_object.file_path) os.remove(storage_object.file_path)
yield object_list
@allure.step("Select random node to stop and start it after test") @allure.step("Select random node to stop and start it after test")
@pytest.fixture @pytest.fixture
def node_to_stop( def node_to_stop(