From 39a6d13276d805a49a1aaf3faf0acdb205cbd431 Mon Sep 17 00:00:00 2001 From: Roman Zajic Date: Mon, 27 May 2024 16:34:56 +0200 Subject: [PATCH] fix: occasional failure to check published message for RLN tests (#44) * test: increased message propagation delay * test: increased message propagation delay in all instances * fix: delete test workflow --- tests/relay/test_rln.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/relay/test_rln.py b/tests/relay/test_rln.py index 4cf3897285..645e10f601 100644 --- a/tests/relay/test_rln.py +++ b/tests/relay/test_rln.py @@ -25,7 +25,7 @@ class TestRelayRLN(StepsRLN, StepsRelay): logger.debug(f'Running test with payload {payload["description"]}') message = self.create_message(payload=to_base64(payload["value"])) try: - self.check_published_message_reaches_relay_peer(message) + self.check_published_message_reaches_relay_peer(message, message_propagation_delay=0.2) except Exception as e: logger.error(f'Payload {payload["description"]} failed: {str(e)}') failed_payloads.append(payload["description"]) @@ -81,7 +81,7 @@ class TestRelayRLN(StepsRLN, StepsRelay): logger.debug(f'Running test with payload {payload["description"]}') message = self.create_message(payload=to_base64(payload["value"])) try: - self.check_published_message_reaches_relay_peer(message) + self.check_published_message_reaches_relay_peer(message, message_propagation_delay=0.2) except Exception as e: logger.error(f'Payload {payload["description"]} failed: {str(e)}') failed_payloads.append(payload["description"]) @@ -114,7 +114,7 @@ class TestRelayRLN(StepsRLN, StepsRelay): logger.debug(f'Running test with payload {payload["description"]}') message = self.create_message(payload=to_base64(payload["value"])) try: - self.check_published_message_reaches_relay_peer(message) + self.check_published_message_reaches_relay_peer(message, message_propagation_delay=0.2) except Exception as e: logger.error(f'Payload {payload["description"]} failed: {str(e)}') failed_payloads.append(payload["description"]) @@ -170,7 +170,7 @@ class TestRelayRLN(StepsRLN, StepsRelay): logger.debug(f'Running test with payload {payload["description"]}') message = self.create_message(payload=to_base64(payload["value"])) try: - self.check_published_message_reaches_relay_peer(message) + self.check_published_message_reaches_relay_peer(message, message_propagation_delay=0.2) except Exception as e: logger.error(f'Payload {payload["description"]} failed: {str(e)}') failed_payloads.append(payload["description"]) @@ -208,7 +208,7 @@ class TestRelayRLN(StepsRLN, StepsRelay): logger.debug(f'Running test with payload {payload["description"]}') message = self.create_message(payload=to_base64(payload["value"])) try: - self.check_published_message_reaches_relay_peer(message) + self.check_published_message_reaches_relay_peer(message, message_propagation_delay=0.2) except Exception as e: logger.error(f'Payload {payload["description"]} failed: {str(e)}') failed_payloads.append(payload["description"])