test: type as bytes before decoding

This commit is contained in:
Roman 2025-01-20 14:50:26 +08:00
parent 77ce25cb0b
commit 7cdcc0d084
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75

View File

@ -18,4 +18,4 @@ class TestDataIntegrity(StepsDataAvailability):
def test_da_sampling_determines_data_presence(self):
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])
assert DATA_TO_DISPERSE[0] == received_data[0][1].decode("utf-8")
assert DATA_TO_DISPERSE[0] == bytes(received_data[0][1]).decode("utf-8")