[MM-16751] golint model (#17896)
Этот коммит содержится в:
коммит произвёл
Claudio Costa
родитель
953eebdef4
Коммит
97ccf0bdf6
@@ -75,7 +75,7 @@ func manualTest(c *web.Context, w http.ResponseWriter, r *http.Request) {
|
||||
DisplayName: teamDisplayName[0],
|
||||
Name: "zz" + utils.RandomName(utils.Range{Begin: 20, End: 20}, utils.LOWERCASE),
|
||||
Email: "success+" + model.NewId() + "simulator.amazonses.com",
|
||||
Type: model.TEAM_OPEN,
|
||||
Type: model.TeamOpen,
|
||||
}
|
||||
|
||||
createdTeam, err := c.App.Srv().Store.Team().Save(team)
|
||||
@@ -93,7 +93,7 @@ func manualTest(c *web.Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
channel := &model.Channel{DisplayName: "Town Square", Name: "town-square", Type: model.CHANNEL_OPEN, TeamId: createdTeam.Id}
|
||||
channel := &model.Channel{DisplayName: "Town Square", Name: "town-square", Type: model.ChannelTypeOpen, TeamId: createdTeam.Id}
|
||||
if _, err := c.App.CreateChannel(c.AppContext, channel, false); err != nil {
|
||||
c.Err = err
|
||||
return
|
||||
@@ -127,7 +127,7 @@ func manualTest(c *web.Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// Respond with an auth token this can be overridden by a specific test as required
|
||||
sessionCookie := &http.Cookie{
|
||||
Name: model.SESSION_COOKIE_TOKEN,
|
||||
Name: model.SessionCookieToken,
|
||||
Value: client.AuthToken,
|
||||
Path: "/",
|
||||
MaxAge: *c.App.Config().ServiceSettings.SessionLengthWebInDays * 60 * 60 * 24,
|
||||
|
||||
@@ -23,7 +23,7 @@ https://medium.com/@slackhq/11-useful-tips-for-getting-the-most-of-slack-5dfb3d1
|
||||
|
||||
func testAutoLink(env TestEnvironment) *model.AppError {
|
||||
mlog.Info("Manual Auto Link Test")
|
||||
channelID, err := getChannelID(env.Context.App, model.DEFAULT_CHANNEL, env.CreatedTeamID, env.CreatedUserID)
|
||||
channelID, err := getChannelID(env.Context.App, model.DefaultChannelName, env.CreatedTeamID, env.CreatedUserID)
|
||||
if !err {
|
||||
return model.NewAppError("/manualtest", "manaultesting.test_autolink.unable.app_error", nil, "", http.StatusInternalServerError)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user