From 43c55e4d8d7ca875896c36c1c5497eed8bba6c69 Mon Sep 17 00:00:00 2001 From: Florin Barbu Date: Wed, 11 Sep 2024 12:23:02 +0300 Subject: [PATCH] update lp errors --- tests/light_push/test_publish.py | 7 +++---- tests/light_push/test_running_nodes.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/light_push/test_publish.py b/tests/light_push/test_publish.py index 3f8e6e86..8777fe5c 100644 --- a/tests/light_push/test_publish.py +++ b/tests/light_push/test_publish.py @@ -132,7 +132,7 @@ class TestLightPushPublish(StepsLightPush): self.check_light_pushed_message_reaches_receiving_peer(pubsub_topic=VALID_PUBSUB_TOPICS[1]) raise AssertionError("Light push on unsubscribed pubsub_topic worked!!!") except Exception as ex: - assert "Lightpush request has not been published to any peers" in str(ex) + assert "not_published_to_any_peer" in str(ex) def test_light_push_with_invalid_pubsub_topics(self): success_content_topics = [] @@ -145,12 +145,11 @@ class TestLightPushPublish(StepsLightPush): assert "Bad Request" in str(ex) assert not success_content_topics, f"Invalid Content topics that didn't failed: {success_content_topics}" - @pytest.mark.xfail("go-waku" in NODE_2, reason="https://github.com/waku-org/go-waku/issues/1078") def test_light_push_with_missing_pubsub_topics(self): try: self.light_push_node1.send_light_push_message({"message": self.create_message()}) except Exception as ex: - assert "Lightpush request has not been published to any peer" in str(ex) + assert "not_published_to_any_peer" in str(ex) or "timeout" in str(ex) def test_light_push_with_valid_timestamps(self): failed_timestamps = [] @@ -238,7 +237,7 @@ class TestLightPushPublish(StepsLightPush): try: self.check_light_pushed_message_reaches_receiving_peer(message=message) except Exception as ex: - assert "Lightpush request has not been published to any peer" in str(ex) + assert "not_published_to_any_peer" in str(ex) def test_light_push_while_peer_is_paused(self): message = self.create_message() diff --git a/tests/light_push/test_running_nodes.py b/tests/light_push/test_running_nodes.py index 31cb9363..84efc78f 100644 --- a/tests/light_push/test_running_nodes.py +++ b/tests/light_push/test_running_nodes.py @@ -62,4 +62,4 @@ class TestRunningNodes(StepsLightPush): try: self.check_light_pushed_message_reaches_receiving_peer(sender=self.light_push_node1) except Exception as ex: - assert "Lightpush request has not been published to any peers" in str(ex) + assert "not_published_to_any_peer" in str(ex)