Skip to content

Commit

Permalink
Merge pull request #542 from armosec/testfix
Browse files Browse the repository at this point in the history
Add early exit condition for message retrieval in Teams workflows
  • Loading branch information
kooomix authored Dec 17, 2024
2 parents 03b1525 + 0e9ad4a commit 407696e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests_scripts/workflows/teams_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 407696e

Please sign in to comment.