mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix scheduler race conditions and add comprehensive test suite (#9348)
This commit is contained in:
		
							
								
								
									
										47
									
								
								tests/integration/fixtures/scheduler_string_lifetime.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								tests/integration/fixtures/scheduler_string_lifetime.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,47 @@ | ||||
| esphome: | ||||
|   name: scheduler-string-lifetime-test | ||||
|  | ||||
| external_components: | ||||
|   - source: | ||||
|       type: local | ||||
|       path: EXTERNAL_COMPONENT_PATH | ||||
|     components: [scheduler_string_lifetime_component] | ||||
|  | ||||
| host: | ||||
|  | ||||
| logger: | ||||
|   level: DEBUG | ||||
|  | ||||
| scheduler_string_lifetime_component: | ||||
|   id: string_lifetime | ||||
|  | ||||
| api: | ||||
|   services: | ||||
|     - service: run_string_lifetime_test | ||||
|       then: | ||||
|         - lambda: |- | ||||
|             id(string_lifetime)->run_string_lifetime_test(); | ||||
|     - service: run_test1 | ||||
|       then: | ||||
|         - lambda: |- | ||||
|             id(string_lifetime)->run_test1(); | ||||
|     - service: run_test2 | ||||
|       then: | ||||
|         - lambda: |- | ||||
|             id(string_lifetime)->run_test2(); | ||||
|     - service: run_test3 | ||||
|       then: | ||||
|         - lambda: |- | ||||
|             id(string_lifetime)->run_test3(); | ||||
|     - service: run_test4 | ||||
|       then: | ||||
|         - lambda: |- | ||||
|             id(string_lifetime)->run_test4(); | ||||
|     - service: run_test5 | ||||
|       then: | ||||
|         - lambda: |- | ||||
|             id(string_lifetime)->run_test5(); | ||||
|     - service: run_final_check | ||||
|       then: | ||||
|         - lambda: |- | ||||
|             id(string_lifetime)->run_final_check(); | ||||
		Reference in New Issue
	
	Block a user