This commit is contained in:
J. Nick Koston 2025-07-06 10:02:47 -05:00
parent fd3f15637a
commit 4b3cc52afe
No known key found for this signature in database
4 changed files with 4 additions and 15 deletions

View File

@ -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, (

View File

@ -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

View File

@ -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

View File

@ -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"
)