This commit is contained in:
J. Nick Koston 2025-07-06 19:59:11 -05:00
parent 90fcb5fbcd
commit dc8714c277
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -70,6 +70,9 @@ void SchedulerRapidCancellationComponent::run_rapid_cancellation_test() {
ESP_LOGI(TAG, " Implicit cancellations (replaced): %d", implicit_cancellations);
ESP_LOGI(TAG, " Total accounted: %d (executed + implicit cancellations)",
this->total_executed_.load() + implicit_cancellations);
// Final message to signal test completion - ensures all stats are logged before test ends
ESP_LOGI(TAG, "Test finished - all statistics reported");
});
}

View File

@ -74,9 +74,9 @@ async def test_scheduler_rapid_cancellation(
test_complete_future.set_exception(Exception(f"Crash detected: {line}"))
return
# Check for completion
# Check for completion - wait for final message after all stats are logged
if (
"Rapid cancellation test complete" in line
"Test finished - all statistics reported" in line
and not test_complete_future.done()
):
test_complete_future.set_result(None)