From 7497e555ccdf5b64b29192a818f4daddd8496fde Mon Sep 17 00:00:00 2001 From: HussainLatiff Date: Fri, 5 Jul 2024 11:11:45 +0530 Subject: [PATCH] Remove redunadant serviceurl --- ballerina/tests/README.md | 2 -- ballerina/tests/tests.bal | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ballerina/tests/README.md b/ballerina/tests/README.md index 0cc45bb..9974934 100644 --- a/ballerina/tests/README.md +++ b/ballerina/tests/README.md @@ -47,7 +47,6 @@ Create a `Config.toml` file in the tests directory and add your authentication c isTestOnLiveServer = true token = "" userId = "" -serviceUrl = "" ``` #### Using Environment Variables @@ -58,7 +57,6 @@ Alternatively, you can set your authentication credentials as environment variab export IS_LIVE_SERVER=true export TOKEN="" export DISCORD_USER_ID="" -export DISCORD_URL="" ``` Then, run the following command to run the tests: diff --git a/ballerina/tests/tests.bal b/ballerina/tests/tests.bal index 1368b2e..ff237e3 100644 --- a/ballerina/tests/tests.bal +++ b/ballerina/tests/tests.bal @@ -19,7 +19,7 @@ import ballerina/test; configurable boolean isLiveServer = os:getEnv("IS_LIVE_SERVER") == "true"; configurable string token = isLiveServer ? os:getEnv("TOKEN") : "z4HhmDy5ghijpIRL1YFzhCeVFabcdef"; -configurable string serviceUrl = isLiveServer ? os:getEnv("DISCORD_URL") : "http://localhost:9090"; +configurable string serviceUrl = isLiveServer ? "https://discord.com/api/v10" : "http://localhost:9090"; configurable string userId = isLiveServer ? os:getEnv("DISCORD_USER_ID") :"688069266636800112"; string voiceChannelId = "1160951610135019725";