From ead55f657f6af26201cfaab288a8b09b8368ada5 Mon Sep 17 00:00:00 2001 From: Dmitriy Zayakin Date: Mon, 19 Jun 2023 07:43:48 +0300 Subject: [PATCH] Delete object after put to container Signed-off-by: Dmitriy Zayakin --- pytest_tests/testsuites/failovers/test_failover_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest_tests/testsuites/failovers/test_failover_server.py b/pytest_tests/testsuites/failovers/test_failover_server.py index 61d852c..c87e6b5 100644 --- a/pytest_tests/testsuites/failovers/test_failover_server.py +++ b/pytest_tests/testsuites/failovers/test_failover_server.py @@ -85,11 +85,11 @@ class TestFailoverServer(ClusterTestBase): for _ in range(count_object): object_list.append(cont.generate_object(size=random.choice(object_size))) - yield object_list - for storage_object in object_list: os.remove(storage_object.file_path) + yield object_list + @allure.step("Select random node to stop and start it after test") @pytest.fixture def node_to_stop(