small fix after CI run

This commit is contained in:
fbarbu15 2023-11-20 09:08:54 +02:00
parent 08a3d01413
commit 316d827d98
No known key found for this signature in database
GPG Key ID: D75221C8DEA22501
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class StepsRelay:
for index, peer in enumerate(peer_list):
logger.debug(f"Checking that peer NODE_{index + 1} {peer.image} can find the published message")
get_messages_response = peer.get_messages(pubsub_topic or self.test_pubsub_topic)
assert get_messages_response, f"Peer NODE_{index} {peer.image} couldn't find any messages"
assert get_messages_response, f"Peer NODE_{index}:{peer.image} couldn't find any messages"
received_message = message_rpc_response_schema.load(get_messages_response[0])
self.assert_received_message(message, received_message)

View File

@ -65,7 +65,7 @@ class TestRelayPublish(StepsRelay):
self.check_published_message_reaches_peer(message, message_propagation_delay=2)
raise AssertionError("Duplicate message was retrieved twice")
except Exception as ex:
assert "Peer node couldn't find any messages" in str(ex)
assert "couldn't find any messages" in str(ex)
def test_publish_with_valid_content_topics(self):
failed_content_topics = []
@ -204,7 +204,7 @@ class TestRelayPublish(StepsRelay):
self.check_published_message_reaches_peer(message)
raise AssertionError("Duplicate message was retrieved twice")
except Exception as ex:
assert "Peer node couldn't find any messages" in str(ex)
assert "couldn't find any messages" in str(ex)
def test_publish_while_peer_is_paused(self):
message = self.create_message()