Add missing destroy function.

The component allocates resources (timers, event loop) in relay_chn_create but never frees them. This is a resource leak.
Hence, a destroy function added to free the resources gracefully.

Fixes #1048.
This commit is contained in:
2025-07-14 11:37:14 +03:00
parent a90649a4d3
commit f1cb928341
3 changed files with 41 additions and 1 deletions

View File

@@ -27,9 +27,10 @@ void setUp(void) {
}
void tearDown(void) {
relay_chn_destroy(); // Clean up after each test
}
// --- Basic Functionality Tests ---
// TEST_CASE 1: Test that relay channels initialize correctly to RELAY_CHN_STATE_FREE