mirror of
https://github.com/esphome/esphome.git
synced 2025-08-05 09:57:47 +00:00
preen
This commit is contained in:
parent
fd3f15637a
commit
4b3cc52afe
@ -133,14 +133,6 @@ async def test_scheduler_heap_stress(
|
||||
assert len(indices) == 100, (
|
||||
f"Thread {thread_id} executed {len(indices)} callbacks, expected 100"
|
||||
)
|
||||
|
||||
# Verify that we executed a reasonable number of callbacks
|
||||
assert timeout_count > 0, (
|
||||
f"Expected some timeout callbacks but got {timeout_count}"
|
||||
)
|
||||
assert interval_count > 0, (
|
||||
f"Expected some interval callbacks but got {interval_count}"
|
||||
)
|
||||
# Total should be 1000 callbacks
|
||||
total_callbacks = timeout_count + interval_count
|
||||
assert total_callbacks == 1000, (
|
||||
|
@ -46,8 +46,8 @@ async def test_scheduler_rapid_cancellation(
|
||||
# Count log lines
|
||||
test_stats["log_count"] += 1
|
||||
|
||||
# Check for errors
|
||||
if "ERROR" in line or "WARN" in line:
|
||||
# Check for errors (only ERROR level, not WARN)
|
||||
if "ERROR" in line:
|
||||
test_stats["errors"].append(line)
|
||||
|
||||
# Parse summary statistics
|
||||
|
@ -46,7 +46,7 @@ async def test_scheduler_simultaneous_callbacks(
|
||||
test_stats["scheduled"] += 1
|
||||
elif "Callback executed" in line:
|
||||
test_stats["executed"] += 1
|
||||
elif "ERROR" in line or "WARN" in line:
|
||||
elif "ERROR" in line:
|
||||
test_stats["errors"].append(line)
|
||||
|
||||
# Check for crash indicators
|
||||
|
@ -121,10 +121,7 @@ async def test_scheduler_string_lifetime(
|
||||
# Check for any errors
|
||||
assert test_stats["tests_failed"] == 0, f"Tests failed: {test_stats['errors']}"
|
||||
|
||||
# Verify we had the expected number of passing tests and no failures
|
||||
# Verify we had the expected number of passing tests
|
||||
assert test_stats["tests_passed"] == 30, (
|
||||
f"Expected exactly 30 tests to pass, but got {test_stats['tests_passed']}"
|
||||
)
|
||||
assert test_stats["tests_failed"] == 0, (
|
||||
f"Expected no test failures, but got {test_stats['tests_failed']} failures"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user