mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	remove debugging
This commit is contained in:
		| @@ -105,8 +105,6 @@ async def test_scheduler_simultaneous_callbacks( | |||||||
|             await asyncio.wait_for(test_complete_future, timeout=30.0) |             await asyncio.wait_for(test_complete_future, timeout=30.0) | ||||||
|         except asyncio.TimeoutError: |         except asyncio.TimeoutError: | ||||||
|             pytest.fail(f"Simultaneous callbacks test timed out. Stats: {test_stats}") |             pytest.fail(f"Simultaneous callbacks test timed out. Stats: {test_stats}") | ||||||
|         except Exception as e: |  | ||||||
|             pytest.fail(f"Test failed: {e}\nStats: {test_stats}") |  | ||||||
|  |  | ||||||
|         # Check for any errors |         # Check for any errors | ||||||
|         assert len(test_stats["errors"]) == 0, ( |         assert len(test_stats["errors"]) == 0, ( | ||||||
|   | |||||||
| @@ -112,8 +112,6 @@ async def test_scheduler_string_lifetime( | |||||||
|             await asyncio.wait_for(test_complete_future, timeout=30.0) |             await asyncio.wait_for(test_complete_future, timeout=30.0) | ||||||
|         except asyncio.TimeoutError: |         except asyncio.TimeoutError: | ||||||
|             pytest.fail(f"String lifetime test timed out. Stats: {test_stats}") |             pytest.fail(f"String lifetime test timed out. Stats: {test_stats}") | ||||||
|         except Exception as e: |  | ||||||
|             pytest.fail(f"Test failed: {e}\nStats: {test_stats}") |  | ||||||
|  |  | ||||||
|         # Check for use-after-free |         # Check for use-after-free | ||||||
|         assert not test_stats["use_after_free_detected"], "Use-after-free detected!" |         assert not test_stats["use_after_free_detected"], "Use-after-free detected!" | ||||||
|   | |||||||
| @@ -102,11 +102,6 @@ async def test_scheduler_string_name_stress( | |||||||
|                 f"String name stress test timed out. Executed {len(executed_callbacks)} callbacks. " |                 f"String name stress test timed out. Executed {len(executed_callbacks)} callbacks. " | ||||||
|                 f"This might indicate a deadlock." |                 f"This might indicate a deadlock." | ||||||
|             ) |             ) | ||||||
|         except Exception as e: |  | ||||||
|             # A crash was detected |  | ||||||
|             pytest.fail( |  | ||||||
|                 f"Test failed due to crash: {e}\nError messages: {error_messages}" |  | ||||||
|             ) |  | ||||||
|  |  | ||||||
|         # Verify no errors occurred (crashes already handled by exception) |         # Verify no errors occurred (crashes already handled by exception) | ||||||
|         assert not error_messages, f"Errors detected during test: {error_messages}" |         assert not error_messages, f"Errors detected during test: {error_messages}" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user