From 8425c0fed731be0dace586a19b9835bc92e4971d Mon Sep 17 00:00:00 2001 From: fbarbu15 Date: Tue, 10 Dec 2024 16:58:28 +0200 Subject: [PATCH] chore: fix wrong store node type (#94) * chore: fix wrong store node type * chore: adjust flaky LP test --- src/steps/light_push.py | 4 +++- tests/store/test_reliability.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/steps/light_push.py b/src/steps/light_push.py index d4cb7d6663..52eedb62c0 100644 --- a/src/steps/light_push.py +++ b/src/steps/light_push.py @@ -143,4 +143,6 @@ class StepsLightPush(StepsCommon): @retry(stop=stop_after_delay(120), wait=wait_fixed(1), reraise=True) def subscribe_and_light_push_with_retry(self): self.subscribe_to_pubsub_topics_via_relay() - self.check_light_pushed_message_reaches_receiving_peer() + self.light_push_node1.send_light_push_message(self.create_payload()) + get_messages_response = self.main_receiving_nodes[0].get_relay_messages(self.test_pubsub_topic) + assert len(get_messages_response) >= 1, f"Expected al least 1 message but got {len(get_messages_response)}" diff --git a/tests/store/test_reliability.py b/tests/store/test_reliability.py index ed1a4e5d37..7c6ee4cacd 100644 --- a/tests/store/test_reliability.py +++ b/tests/store/test_reliability.py @@ -85,7 +85,7 @@ class TestReliability(StepsStore): def test_message_relayed_while_store_node_is_stopped_without_removing(self): self.setup_first_publishing_node(store="true", relay="true") - self.setup_first_store_node(store="false", relay="true", remove_container=False) + self.setup_first_store_node(store="false", relay="false", remove_container=False) self.subscribe_to_pubsub_topics_via_relay() self.publish_message() self.check_published_message_is_stored(page_size=5)