From 5c6ad0444ec9c0fbae4d7b90c572ca6b7cc3b4af Mon Sep 17 00:00:00 2001 From: trupthi1403 Date: Thu, 11 Dec 2025 12:04:48 +0530 Subject: [PATCH] test-0: For testing purpose only[DONOT MERGE] --- src/JSRuntimeClientContainer.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/JSRuntimeClientContainer.cpp b/src/JSRuntimeClientContainer.cpp index 8382be2..ae17f3c 100644 --- a/src/JSRuntimeClientContainer.cpp +++ b/src/JSRuntimeClientContainer.cpp @@ -4,6 +4,8 @@ #include #include #include "NativeJSLogger.h" + +#ifndef UNIT_TEST_BUILD int main() { std::string containerId = "com.sky.as.apps_TestApp"; @@ -12,8 +14,12 @@ int main() std::string ipAddress = JSRuntimeContainer::getContainerIpAddress(containerId); if (ipAddress.empty()) { - NativeJSLogger::log(ERROR, "Failed to retrieve IP address for container"); + #ifdef UNIT_TEST_BUILD + ipAddress = "127.0.0.1"; + #else + NativeJSLogger::log(ERROR, "Failed to retrieve IP address for container"); return 1; + #endif } for (const auto &app : apps) { @@ -28,4 +34,5 @@ int main() return 0; } +#endif