chore: fix rln tests

This commit is contained in:
Florin Barbu 2024-12-05 09:54:11 +02:00
parent c95fff8ac3
commit ff4567659e
No known key found for this signature in database
GPG Key ID: 593D6DBC6D9E5095
2 changed files with 4 additions and 12 deletions

View File

@ -218,6 +218,8 @@ METRICS_WITH_INITIAL_VALUE_ZERO = [
"waku_rln_instance_creation_duration_seconds",
"waku_rln_membership_insertion_duration_seconds",
"waku_rln_membership_credentials_import_duration_seconds",
"waku_rln_proof_remining",
"waku_rln_proofs_generated_total",
"libp2p_pubsub_sig_verify_success_total",
"libp2p_pubsub_sig_verify_failure_total",
"libp2p_pubsub_disconnects_over_non_priority_queue_limit_total",

View File

@ -139,12 +139,7 @@ class TestRelayRLN(StepsRLN, StepsRelay):
message_limit = 100
epoch_sec = 600
pytestconfig.cache.set("keystore-prefixes", self.register_rln_relay_nodes(2, []))
self.setup_main_rln_relay_nodes(
rln_relay_user_message_limit=message_limit,
rln_relay_epoch_sec=epoch_sec,
rln_relay_dynamic="true",
wait_for_node_sec=600,
)
self.setup_main_rln_relay_nodes(rln_relay_user_message_limit=message_limit, rln_relay_epoch_sec=epoch_sec, rln_relay_dynamic="true")
self.subscribe_main_relay_nodes()
start = math.trunc(time())
for i, payload in enumerate(self.SAMPLE_INPUTS_RLN):
@ -163,12 +158,7 @@ class TestRelayRLN(StepsRLN, StepsRelay):
def test_valid_payloads_dynamic_at_slow_rate(self, pytestconfig):
message_limit = 100
pytestconfig.cache.set("keystore-prefixes", self.register_rln_relay_nodes(2, []))
self.setup_main_rln_relay_nodes(
rln_relay_user_message_limit=message_limit,
rln_relay_epoch_sec=600,
rln_relay_dynamic="true",
wait_for_node_sec=600,
)
self.setup_main_rln_relay_nodes(rln_relay_user_message_limit=message_limit, rln_relay_epoch_sec=600, rln_relay_dynamic="true")
self.subscribe_main_relay_nodes()
failed_payloads = []
for i, payload in enumerate(self.SAMPLE_INPUTS_RLN):