diff --git a/ballerina/tests/tests.bal b/ballerina/tests/tests.bal index 9267ee2..094a4d6 100644 --- a/ballerina/tests/tests.bal +++ b/ballerina/tests/tests.bal @@ -17,7 +17,7 @@ import ballerina/os; import ballerina/test; -configurable boolean isLiveServer = ?; +configurable boolean isLiveServer = os:getEnv("isLiveServer") == "true"; configurable string token = isLiveServer ? os:getEnv("token") : "test"; final string mockServiceUrl = "http://localhost:9090"; final Client openAIChat = check initClient();