From 206962575988c80f9254aa045293bf7a490090ab Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 16 Sep 2024 14:38:59 +0300 Subject: [PATCH] fix: calculate expected_complaints correctly --- test/functional/feature_llmq_simplepose.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/feature_llmq_simplepose.py b/test/functional/feature_llmq_simplepose.py index 6ca819968a..f3e48ff48e 100755 --- a/test/functional/feature_llmq_simplepose.py +++ b/test/functional/feature_llmq_simplepose.py @@ -161,6 +161,7 @@ class LLMQSimplePoSeTest(DashTestFramework): for _ in range(2): mn = mninfos_valid.pop() went_offline, instant_ban = invalidate_proc(mn) + expected_complaints = expected_contributors - 1 if went_offline: mninfos_online.remove(mn) expected_contributors -= 1 @@ -169,7 +170,7 @@ class LLMQSimplePoSeTest(DashTestFramework): # so nodes are PoSe-banned in the same DKG they misbehave without being PoSe-punished first. if instant_ban: self.reset_probe_timeouts() - self.mine_quorum(expected_connections=expected_connections, expected_members=expected_contributors, expected_contributions=expected_contributors, expected_complaints=expected_contributors-1, expected_commitments=expected_contributors, mninfos_online=mninfos_online, mninfos_valid=mninfos_valid) + self.mine_quorum(expected_connections=expected_connections, expected_members=expected_contributors, expected_contributions=expected_contributors, expected_complaints=expected_complaints, expected_commitments=expected_contributors, mninfos_online=mninfos_online, mninfos_valid=mninfos_valid) else: # It's ok to miss probes/quorum connections up to 5 times. # 6th time is when it should be banned for sure.