small fixes

This commit is contained in:
Florin Barbu 2024-01-05 13:52:02 +02:00
parent 4325ac1294
commit fb8056b047
No known key found for this signature in database
GPG Key ID: 593D6DBC6D9E5095
2 changed files with 3 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class StepsFilter:
self.ping_filter_subscriptions(str(uuid4()), node=node)
raise AssertionError("Ping without any subscription worked")
except Exception as ex:
assert "peer has no subscriptions" in str(ex)
assert "peer has no subscription" in str(ex)
@allure.step
def add_new_relay_subscription(self, pubsub_topics, node=None):

View File

@ -1,4 +1,5 @@
import pytest
from src.libs.common import delay
from src.libs.custom_logger import get_custom_logger
from src.steps.filter import StepsFilter
@ -31,6 +32,7 @@ class TestFilterMultipleNodes(StepsFilter):
self.node1.send_relay_message(relay_message1, self.test_pubsub_topic)
self.node2.unpause()
self.node1.send_relay_message(relay_message2, self.test_pubsub_topic)
delay(0.5)
filter_messages = self.get_filter_messages(content_topic=self.test_content_topic, pubsub_topic=self.test_pubsub_topic, node=self.node2)
assert len(filter_messages) == 2, "Both messages should've been returned"