chore: fix go waku lightprotocol tests

This commit is contained in:
Florin Barbu 2024-11-27 15:58:37 +02:00
parent 6fe599e1ee
commit 11b82c76b2
No known key found for this signature in database
GPG Key ID: 593D6DBC6D9E5095
2 changed files with 8 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class StepsLightPush(StepsCommon):
else:
pytest.skip("ADDITIONAL_NODES/node_list is empty, cannot run test")
for index, node in enumerate(nodes):
self.start_receiving_node(node, node_index=index + 2, lightpush="true", relay="true", **kwargs)
self.start_receiving_node(node, node_index=index + 2, lightpush="true", relay="true", pubsub_topic=self.test_pubsub_topic, **kwargs)
@allure.step
def setup_first_lightpush_node(self, lightpush="true", relay="false", **kwargs):

View File

@ -348,7 +348,13 @@ class TestE2E(StepsFilter, StepsStore, StepsRelay, StepsLightPush):
logger.debug("Start 3 nodes with their corresponding config")
self.node1.start(relay="true", store="true")
self.node2.start(relay="true", store="true", filter="true", discv5_bootstrap_node=self.node1.get_enr_uri())
self.node3.start(relay="true", filternode=self.node2.get_multiaddr_with_id(), store="false", discv5_bootstrap_node=self.node2.get_enr_uri())
self.node3.start(
relay="true",
filternode=self.node2.get_multiaddr_with_id(),
store="false",
pubsub_topic=self.test_pubsub_topic,
discv5_bootstrap_node=self.node2.get_enr_uri(),
)
logger.debug("Subscribe nodes to relay pubsub topics")
self.node1.set_relay_subscriptions([self.test_pubsub_topic])