diff --git a/tests/integration/fixtures/defer_fifo_simple.yaml b/tests/integration/fixtures/defer_fifo_simple.yaml index a221256f6c..db24ebf601 100644 --- a/tests/integration/fixtures/defer_fifo_simple.yaml +++ b/tests/integration/fixtures/defer_fifo_simple.yaml @@ -87,7 +87,8 @@ api: } }; - TestComponent test_component; + // Use a static instance so it doesn't go out of scope + static TestComponent test_component; test_component.test_defer(); ESP_LOGD("defer_test", "Deferred 10 items using defer(), waiting for execution...");