handle none response and remove assertion

This commit is contained in:
Radoslaw Kaminski 2025-03-13 09:46:12 +00:00
parent 8998d174e1
commit 9af7c98ff3
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,9 @@ def prepare_get_range_request(app_id, start_index, end_index):
def response_contains_data(response):
if response is None:
return False
for index, blobs in response:
if len(blobs) != 0:
return True

View File

@ -30,8 +30,7 @@ class TestLargeVolume(StepsDataAvailability):
assert response.status_code == 200
delay(5)
rcv_data = self.get_data_range(self.node2, to_app_id(1), to_index(0), to_index(5), timeout_duration=20, interval=1)
assert rcv_data is not None
self.get_data_range(self.node2, to_app_id(1), to_index(0), to_index(5), timeout_duration=20, interval=1)
@pytest.mark.usefixtures("setup_2_node_cluster")
@pytest.mark.parametrize(