mirror of
https://github.com/logos-co/nomos-e2e-tests.git
synced 2025-02-24 04:08:08 +00:00
test: debug received data
This commit is contained in:
parent
536864e168
commit
c5f82e6176
@ -38,5 +38,5 @@ class StepsDataAvailability(StepsCommon):
|
||||
# Extract data as a string for each index in the received order
|
||||
parsed_data = []
|
||||
for item in response_bytes.content:
|
||||
parsed_data.append(item.decode("utf-8"))
|
||||
parsed_data.append(item)
|
||||
return parsed_data
|
||||
|
@ -1,8 +1,11 @@
|
||||
import pytest
|
||||
|
||||
from src.libs.custom_logger import get_custom_logger
|
||||
from src.steps.da import StepsDataAvailability
|
||||
from src.test_data import DATA_TO_DISPERSE
|
||||
|
||||
logger = get_custom_logger(__name__)
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("setup_main_nodes")
|
||||
class TestDataIntegrity(StepsDataAvailability):
|
||||
@ -15,4 +18,5 @@ 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])
|
||||
logger.debug(f"received data {received_data}")
|
||||
assert DATA_TO_DISPERSE[0] == received_data[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user