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
This commit is contained in:
Roman Zajic 2024-05-27 16:34:56 +02:00 committed by GitHub
parent 84636b7a57
commit 39a6d13276
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ class TestRelayRLN(StepsRLN, StepsRelay):
logger.debug(f'Running test with payload {payload["description"]}') logger.debug(f'Running test with payload {payload["description"]}')
message = self.create_message(payload=to_base64(payload["value"])) message = self.create_message(payload=to_base64(payload["value"]))
try: 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: except Exception as e:
logger.error(f'Payload {payload["description"]} failed: {str(e)}') logger.error(f'Payload {payload["description"]} failed: {str(e)}')
failed_payloads.append(payload["description"]) failed_payloads.append(payload["description"])
@ -81,7 +81,7 @@ class TestRelayRLN(StepsRLN, StepsRelay):
logger.debug(f'Running test with payload {payload["description"]}') logger.debug(f'Running test with payload {payload["description"]}')
message = self.create_message(payload=to_base64(payload["value"])) message = self.create_message(payload=to_base64(payload["value"]))
try: 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: except Exception as e:
logger.error(f'Payload {payload["description"]} failed: {str(e)}') logger.error(f'Payload {payload["description"]} failed: {str(e)}')
failed_payloads.append(payload["description"]) failed_payloads.append(payload["description"])
@ -114,7 +114,7 @@ class TestRelayRLN(StepsRLN, StepsRelay):
logger.debug(f'Running test with payload {payload["description"]}') logger.debug(f'Running test with payload {payload["description"]}')
message = self.create_message(payload=to_base64(payload["value"])) message = self.create_message(payload=to_base64(payload["value"]))
try: 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: except Exception as e:
logger.error(f'Payload {payload["description"]} failed: {str(e)}') logger.error(f'Payload {payload["description"]} failed: {str(e)}')
failed_payloads.append(payload["description"]) failed_payloads.append(payload["description"])
@ -170,7 +170,7 @@ class TestRelayRLN(StepsRLN, StepsRelay):
logger.debug(f'Running test with payload {payload["description"]}') logger.debug(f'Running test with payload {payload["description"]}')
message = self.create_message(payload=to_base64(payload["value"])) message = self.create_message(payload=to_base64(payload["value"]))
try: 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: except Exception as e:
logger.error(f'Payload {payload["description"]} failed: {str(e)}') logger.error(f'Payload {payload["description"]} failed: {str(e)}')
failed_payloads.append(payload["description"]) failed_payloads.append(payload["description"])
@ -208,7 +208,7 @@ class TestRelayRLN(StepsRLN, StepsRelay):
logger.debug(f'Running test with payload {payload["description"]}') logger.debug(f'Running test with payload {payload["description"]}')
message = self.create_message(payload=to_base64(payload["value"])) message = self.create_message(payload=to_base64(payload["value"]))
try: 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: except Exception as e:
logger.error(f'Payload {payload["description"]} failed: {str(e)}') logger.error(f'Payload {payload["description"]} failed: {str(e)}')
failed_payloads.append(payload["description"]) failed_payloads.append(payload["description"])