diff --git a/tests_scripts/workflows/teams_workflows.py b/tests_scripts/workflows/teams_workflows.py index 3940f886..f7723c01 100644 --- a/tests_scripts/workflows/teams_workflows.py +++ b/tests_scripts/workflows/teams_workflows.py @@ -207,6 +207,8 @@ def assert_messages_sent(self, begin_time, cluster, attempts=30, sleep_time=10): found_vulnerability = False found_misconfiguration = False for i in range(attempts): + if found_misconfiguration and found_security_risk and found_vulnerability: + break try: messages = self.test_obj["getMessagesFunc"](begin_time) found = str(messages).count(cluster)