summaryrefslogtreecommitdiffstats
path: root/api4/command_test.go
diff options
context:
space:
mode:
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 4bbf20084..467d45955 100644
--- a/api4/command_test.go
+++ b/api4/command_test.go
@@ -47,14 +47,14 @@ func TestCreateCommand(t *testing.T) {
CheckErrorMessage(t, resp, "api.command.duplicate_trigger.app_error")
newCmd.Method = "Wrong"
- newCmd.Trigger = "test"
+ newCmd.Trigger = "testcommand"
_, resp = th.SystemAdminClient.CreateCommand(newCmd)
CheckInternalErrorStatus(t, resp)
CheckErrorMessage(t, resp, "model.command.is_valid.method.app_error")
*utils.Cfg.ServiceSettings.EnableCommands = false
newCmd.Method = "P"
- newCmd.Trigger = "test"
+ newCmd.Trigger = "testcommand"
_, resp = th.SystemAdminClient.CreateCommand(newCmd)
CheckNotImplementedStatus(t, resp)
CheckErrorMessage(t, resp, "api.command.disabled.app_error")