fix: add get-range response check

This commit is contained in:
Roman 2025-06-16 09:52:25 +08:00
parent 59c4d629b1
commit bc34291cef
No known key found for this signature in database
GPG Key ID: 583BDF43C238B83E

View File

@ -16,6 +16,10 @@ class TestDispersalResilience(StepsDataAvailability):
self.disperse_data(DATA_TO_DISPERSE[3], to_app_id(1), to_index(0)) self.disperse_data(DATA_TO_DISPERSE[3], to_app_id(1), to_index(0))
delay(CONSENSUS_SLOT_TIME) delay(CONSENSUS_SLOT_TIME)
try: try:
_rcv_data = self.get_data_range(self.node2, to_app_id(1), to_index(0), to_index(5)) rcv_data = self.get_data_range(self.node2, to_app_id(1), to_index(0), to_index(5))
except AssertionError as ae: except AssertionError as ae:
assert "Get data range response is empty" in str(ae), "Get data range response should be empty" assert "Get data range response is empty" in str(ae), "Get data range response should be empty"
return
if rcv_data:
raise AssertionError("Get data range response should be empty")