mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-05-28 12:19:51 +00:00
handle none response and remove assertion
This commit is contained in:
parent
8998d174e1
commit
9af7c98ff3
@ -29,6 +29,9 @@ def prepare_get_range_request(app_id, start_index, end_index):
|
|||||||
|
|
||||||
|
|
||||||
def response_contains_data(response):
|
def response_contains_data(response):
|
||||||
|
if response is None:
|
||||||
|
return False
|
||||||
|
|
||||||
for index, blobs in response:
|
for index, blobs in response:
|
||||||
if len(blobs) != 0:
|
if len(blobs) != 0:
|
||||||
return True
|
return True
|
||||||
|
|||||||
@ -30,8 +30,7 @@ class TestLargeVolume(StepsDataAvailability):
|
|||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|
||||||
delay(5)
|
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)
|
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
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures("setup_2_node_cluster")
|
@pytest.mark.usefixtures("setup_2_node_cluster")
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user