mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
fix: /test url and json (#22780)
This commit is contained in:
parent
f97a11680b
commit
8d301c0d64
1 changed files with 2 additions and 2 deletions
|
|
@ -629,7 +629,7 @@ func (*LoadTestProvider) URLCommand(a *app.App, c request.CTX, args *model.Comma
|
|||
|
||||
// provide a shortcut to easily access tests stored in doc/developer/tests
|
||||
if !strings.HasPrefix(url, "http") {
|
||||
url = "https://raw.githubusercontent.com/mattermost/mattermost-server/master/tests/" + url
|
||||
url = "https://raw.githubusercontent.com/mattermost/mattermost-server/master/server/tests/" + url
|
||||
|
||||
if path.Ext(url) == "" {
|
||||
url += ".md"
|
||||
|
|
@ -683,7 +683,7 @@ func (*LoadTestProvider) JsonCommand(a *app.App, c request.CTX, args *model.Comm
|
|||
|
||||
// provide a shortcut to easily access tests stored in doc/developer/tests
|
||||
if !strings.HasPrefix(url, "http") {
|
||||
url = "https://raw.githubusercontent.com/mattermost/mattermost-server/master/tests/" + url
|
||||
url = "https://raw.githubusercontent.com/mattermost/mattermost-server/master/server/tests/" + url
|
||||
|
||||
if path.Ext(url) == "" {
|
||||
url += ".json"
|
||||
|
|
|
|||
Loading…
Reference in a new issue