fix: padding 4 node cluster

- error handling for invalid requests
This commit is contained in:
Roman 2025-04-29 15:35:57 +08:00
parent a4b24f4b9f
commit 9670499e77
No known key found for this signature in database
GPG Key ID: 583BDF43C238B83E
2 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ class TestDataIntegrity(StepsDataAvailability):
rcv_data = self.get_data_range(node, to_app_id(1), to_index(0), to_index(5))
rcv_data_json = json.dumps(rcv_data)
reconstructed_data = NomosCli(command="reconstruct").run(input_values=[rcv_data_json])
reconstructed_data = NomosCli(command="reconstruct").run(input_values=[rcv_data_json], decode_only=True)
if DATA_TO_DISPERSE[1] == reconstructed_data:
test_results.append(node.name())

View File

@ -158,9 +158,10 @@ class TestHighLoadDos(StepsDataAvailability):
response = self.disperse_data(
DATA_TO_DISPERSE[6], to_app_id(1), to_index(0), client_node=dispersal_cl, timeout_duration=0, send_invalid=invalid
)
assert response.status_code == 200, f"Dispersal failed with status code {response.status_code}"
assert response.status_code == 200, f"Dispersal failed with unexpected status code {response.status_code}"
successful_dispersals += 1
except AssertionError:
except Exception as ex:
assert "422" in str(ex), f"Unexpected error: {ex}"
if not invalid:
unsuccessful_dispersals += 1