summaryrefslogtreecommitdiffstats
path: root/api4/command_test.go
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-08-31 01:54:16 +0800
committerJoram Wilander <jwawilander@gmail.com>2017-08-30 13:54:16 -0400
commit651dd33b29b7b8b296cc5a12479684fa836867b1 (patch)
tree60d4f385f50ab7f6b8aa75bdb6de2d98508c8784 /api4/command_test.go
parent4c1f4674425ffeb430aa07f3fccbb09837f36a34 (diff)
downloadchat-651dd33b29b7b8b296cc5a12479684fa836867b1.tar.gz
chat-651dd33b29b7b8b296cc5a12479684fa836867b1.tar.bz2
chat-651dd33b29b7b8b296cc5a12479684fa836867b1.zip
set to default value with config is missing (#7320)
Diffstat (limited to 'api4/command_test.go')
-rw-r--r--api4/command_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/command_test.go b/api4/command_test.go
index b0d5f4baa..8f0303c55 100644
--- a/api4/command_test.go
+++ b/api4/command_test.go
@@ -399,7 +399,7 @@ func TestExecuteCommand(t *testing.T) {
postCmd := &model.Command{
CreatorId: th.BasicUser.Id,
TeamId: th.BasicTeam.Id,
- URL: "http://localhost" + utils.Cfg.ServiceSettings.ListenAddress + model.API_URL_SUFFIX_V4 + "/teams/command_test",
+ URL: "http://localhost" + *utils.Cfg.ServiceSettings.ListenAddress + model.API_URL_SUFFIX_V4 + "/teams/command_test",
Method: model.COMMAND_METHOD_POST,
Trigger: "postcommand",
}
@@ -423,7 +423,7 @@ func TestExecuteCommand(t *testing.T) {
getCmd := &model.Command{
CreatorId: th.BasicUser.Id,
TeamId: th.BasicTeam.Id,
- URL: "http://localhost" + utils.Cfg.ServiceSettings.ListenAddress + model.API_URL_SUFFIX_V4 + "/teams/command_test",
+ URL: "http://localhost" + *utils.Cfg.ServiceSettings.ListenAddress + model.API_URL_SUFFIX_V4 + "/teams/command_test",
Method: model.COMMAND_METHOD_GET,
Trigger: "getcommand",
}