@@ -303,9 +303,9 @@ TEST_F(AsyncFunctionHandlerTest, check_triggering_with_different_return_state_an
303303 ASSERT_FALSE (async_class.get_handler ().is_trigger_cycle_in_progress ());
304304 ASSERT_EQ (async_class.get_counter (), 1 );
305305
306- // Trigger one more cycle to return ERROR at the end of cycle,
306+ // Trigger one more cycle to return FAILURE at the end of cycle,
307307 // so return from this cycle should be last cycle's return
308- async_class.set_return_state (realtime_tools::return_type::ERROR );
308+ async_class.set_return_state (realtime_tools::return_type::FAILURE );
309309 trigger_status = async_class.trigger ();
310310 ASSERT_TRUE (trigger_status.first );
311311 ASSERT_EQ (realtime_tools::return_type::OK, trigger_status.second );
@@ -316,20 +316,22 @@ TEST_F(AsyncFunctionHandlerTest, check_triggering_with_different_return_state_an
316316 ASSERT_EQ (async_class.get_handler ().get_last_return_value (), realtime_tools::return_type::OK);
317317 async_class.get_handler ().wait_for_trigger_cycle_to_finish ();
318318 ASSERT_FALSE (async_class.get_handler ().is_trigger_cycle_in_progress ());
319- ASSERT_EQ (async_class.get_handler ().get_last_return_value (), realtime_tools::return_type::ERROR);
319+ ASSERT_EQ (
320+ async_class.get_handler ().get_last_return_value (), realtime_tools::return_type::FAILURE);
320321 ASSERT_LE (async_class.get_counter (), 2 );
321322
322323 // Trigger one more cycle to return DEACTIVATE at the end of cycle,
323324 async_class.set_return_state (realtime_tools::return_type::DEACTIVATE);
324325 trigger_status = async_class.trigger ();
325326 ASSERT_TRUE (trigger_status.first );
326- ASSERT_EQ (realtime_tools::return_type::ERROR , trigger_status.second );
327+ ASSERT_EQ (realtime_tools::return_type::FAILURE , trigger_status.second );
327328 ASSERT_TRUE (async_class.get_handler ().is_initialized ());
328329 ASSERT_TRUE (async_class.get_handler ().is_running ());
329330 ASSERT_FALSE (async_class.get_handler ().is_stopped ());
330331 ASSERT_FALSE (async_class.get_handler ().is_stopped ());
331332 ASSERT_TRUE (async_class.get_handler ().is_trigger_cycle_in_progress ());
332- ASSERT_EQ (async_class.get_handler ().get_last_return_value (), realtime_tools::return_type::ERROR);
333+ ASSERT_EQ (
334+ async_class.get_handler ().get_last_return_value (), realtime_tools::return_type::FAILURE);
333335 async_class.get_handler ().wait_for_trigger_cycle_to_finish ();
334336 ASSERT_FALSE (async_class.get_handler ().is_trigger_cycle_in_progress ());
335337 ASSERT_EQ (
0 commit comments