Skip to content

Commit

Permalink
fix: unitest for remote engine because change location of template re…
Browse files Browse the repository at this point in the history
…nderer
  • Loading branch information
nguyenhoangthuan99 committed Dec 19, 2024
1 parent 27d5097 commit f95cfef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion engine/test/components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions engine/test/components/test_remote_engine.cc
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit f95cfef

Please sign in to comment.