mirror of
https://github.com/esphome/esphome.git
synced 2025-08-05 09:57:47 +00:00
remove debugging
This commit is contained in:
parent
453dc29540
commit
79dfb86830
@ -34,12 +34,9 @@ async def test_scheduler_string_name_stress(
|
||||
|
||||
# Track executed callbacks and any crashes
|
||||
executed_callbacks: set[int] = set()
|
||||
crash_detected = False
|
||||
error_messages: list[str] = []
|
||||
|
||||
def on_log_line(line: str) -> None:
|
||||
nonlocal crash_detected
|
||||
|
||||
# Check for crash indicators
|
||||
if any(
|
||||
indicator in line.lower()
|
||||
@ -51,7 +48,6 @@ async def test_scheduler_string_name_stress(
|
||||
"use after free",
|
||||
]
|
||||
):
|
||||
crash_detected = True
|
||||
error_messages.append(line)
|
||||
if not test_complete_future.done():
|
||||
test_complete_future.set_exception(Exception(f"Crash detected: {line}"))
|
||||
@ -112,10 +108,8 @@ async def test_scheduler_string_name_stress(
|
||||
f"Test failed due to crash: {e}\nError messages: {error_messages}"
|
||||
)
|
||||
|
||||
# Verify no crashes occurred
|
||||
assert not crash_detected, (
|
||||
f"Crash detected during test. Errors: {error_messages}"
|
||||
)
|
||||
# Verify no errors occurred (crashes already handled by exception)
|
||||
assert not error_messages, f"Errors detected during test: {error_messages}"
|
||||
|
||||
# Verify we executed all 1000 callbacks (10 threads × 100 callbacks each)
|
||||
assert len(executed_callbacks) == 1000, (
|
||||
|
Loading…
x
Reference in New Issue
Block a user