mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-03 21:53:08 +00:00
test: let the test decode data
This commit is contained in:
parent
be897bf95e
commit
77ce25cb0b
@ -35,6 +35,4 @@ class StepsDataAvailability(StepsCommon):
|
|||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
assert "Bad Request" in str(ex) or "Internal Server Error" in str(ex)
|
assert "Bad Request" in str(ex) or "Internal Server Error" in str(ex)
|
||||||
|
|
||||||
# Extract data as a string for each index in the received order
|
|
||||||
# parsed_data = json.loads(response)
|
|
||||||
return response
|
return response
|
||||||
|
|||||||
@ -18,5 +18,4 @@ class TestDataIntegrity(StepsDataAvailability):
|
|||||||
def test_da_sampling_determines_data_presence(self):
|
def test_da_sampling_determines_data_presence(self):
|
||||||
self.disperse_data(DATA_TO_DISPERSE[0], [0] * 31 + [1], [0] * 8)
|
self.disperse_data(DATA_TO_DISPERSE[0], [0] * 31 + [1], [0] * 8)
|
||||||
received_data = self.get_data_range([0] * 31 + [1], [0] * 8, [0] * 7 + [5])
|
received_data = self.get_data_range([0] * 31 + [1], [0] * 8, [0] * 7 + [5])
|
||||||
logger.debug(f"received data {received_data}")
|
assert DATA_TO_DISPERSE[0] == received_data[0][1].decode("utf-8")
|
||||||
assert DATA_TO_DISPERSE[0] == received_data[0]
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user