Skip to content

Commit

Permalink
Merge pull request #1120 from NordSecurity/wait_for_log_case_sensitivity
Browse files Browse the repository at this point in the history
Fix wait_for_log case sensitivity
  • Loading branch information
jjanowsk authored Feb 12, 2025
2 parents 3c21482 + 511f16f commit d74685d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Empty file.
5 changes: 4 additions & 1 deletion nat-lab/tests/telio.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,10 @@ async def wait_for_log(
if case_insensitive:
what = what.lower()
while True:
if (await self.get_log()).lower().count(what) >= count:
log = await self.get_log()
if case_insensitive:
log = log.lower()
if log.count(what) >= count:
break
await asyncio.sleep(1)

Expand Down

0 comments on commit d74685d

Please sign in to comment.