Skip to content

Commit

Permalink
Remove redunadant serviceurl
Browse files Browse the repository at this point in the history
  • Loading branch information
HussainLatiff committed Jul 5, 2024
1 parent eab4069 commit 7497e55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions ballerina/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Create a `Config.toml` file in the tests directory and add your authentication c
isTestOnLiveServer = true
token = "<your-discord-bearer-token>"
userId = "<your-discord-user-id>"
serviceUrl = "<your-discord-subdomain-service-url>"
```

#### Using Environment Variables
Expand All @@ -58,7 +57,6 @@ Alternatively, you can set your authentication credentials as environment variab
export IS_LIVE_SERVER=true
export TOKEN="<your-discord-bearer-token>"
export DISCORD_USER_ID="<your-discord-user-id>"
export DISCORD_URL="<your-discord-subdomain-service-url>"
```

Then, run the following command to run the tests:
Expand Down
2 changes: 1 addition & 1 deletion ballerina/tests/tests.bal
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 7497e55

Please sign in to comment.