mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix flapping system log test (#78391)
Since we run tests with asyncio debug on, there is a chance we will get an asyncio log message instead of the one we want Fixes https://github.com/home-assistant/core/actions/runs/3045080236/jobs/4906717578
This commit is contained in:
parent
02c9541862
commit
bf852812bc
@ -41,7 +41,7 @@ def find_log(logs, level):
|
||||
if not isinstance(level, tuple):
|
||||
level = (level,)
|
||||
log = next(
|
||||
(log for log in logs if log["level"] in level),
|
||||
(log for log in logs if log["level"] in level and log["name"] != "asyncio"),
|
||||
None,
|
||||
)
|
||||
assert log is not None
|
||||
|
Loading…
x
Reference in New Issue
Block a user