Optimize a flip test case and execute tests upon removing esp_event

This commit is contained in:
2025-08-22 17:42:24 +03:00
parent 7a0f9b1420
commit cb38f71d8e
2 changed files with 0 additions and 13 deletions

View File

@@ -322,12 +322,10 @@ TEST_CASE("Flipping a running channel stops it and flips direction", "[relay_chn
// 1. Start channel running and verify state
relay_chn_run_forward(ch);
vTaskDelay(pdMS_TO_TICKS(test_delay_margin_ms));
TEST_ASSERT_EQUAL(RELAY_CHN_STATE_FORWARD, relay_chn_get_state(ch));
// 2. Flip the direction while running
relay_chn_flip_direction(ch);
vTaskDelay(pdMS_TO_TICKS(test_delay_margin_ms)); // Give time for events to process
// 3. The channel should stop as part of the flip process
TEST_ASSERT_EQUAL(RELAY_CHN_STATE_STOPPED, relay_chn_get_state(ch));