From f95cfef756a4e1d5680a471afcaa0c9616dba830 Mon Sep 17 00:00:00 2001 From: nguyenhoangthuan99 Date: Thu, 19 Dec 2024 15:14:43 +0700 Subject: [PATCH] fix: unitest for remote engine because change location of template renderer --- engine/test/components/CMakeLists.txt | 2 +- engine/test/components/test_remote_engine.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/test/components/CMakeLists.txt b/engine/test/components/CMakeLists.txt index 0df46cfc2..6ca836158 100644 --- a/engine/test/components/CMakeLists.txt +++ b/engine/test/components/CMakeLists.txt @@ -16,7 +16,7 @@ add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/file_manager_utils.cc ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/curl_utils.cc ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/system_info_utils.cc - ${CMAKE_CURRENT_SOURCE_DIR}/../../extensions/remote-engine/template_renderer.cc + ${CMAKE_CURRENT_SOURCE_DIR}/../../extensions/template_renderer.cc ) find_package(Drogon CONFIG REQUIRED) diff --git a/engine/test/components/test_remote_engine.cc b/engine/test/components/test_remote_engine.cc index bfac76f49..5f1b85044 100644 --- a/engine/test/components/test_remote_engine.cc +++ b/engine/test/components/test_remote_engine.cc @@ -1,4 +1,4 @@ -#include "extensions/remote-engine/template_renderer.h" +#include "extensions/template_renderer.h" #include "gtest/gtest.h" #include "utils/json_helper.h" @@ -42,7 +42,7 @@ TEST_F(RemoteEngineTest, OpenAiToAnthropicRequest) { auto data = json_helper::ParseJsonString(message_with_system); - remote_engine::TemplateRenderer rdr; + extensions::TemplateRenderer rdr; auto res = rdr.Render(tpl, data); auto res_json = json_helper::ParseJsonString(res); @@ -69,7 +69,7 @@ TEST_F(RemoteEngineTest, OpenAiToAnthropicRequest) { auto data = json_helper::ParseJsonString(message_without_system); - remote_engine::TemplateRenderer rdr; + extensions::TemplateRenderer rdr; auto res = rdr.Render(tpl, data); auto res_json = json_helper::ParseJsonString(res);