flaky test: Avoid team names that start with "A". (#30651)

This avoids a non-zero chance we append "pi" from the `model.NewId` and
end up with an invalid prefix "Api".

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Jesse Hallam
2025-04-14 09:47:38 -03:00
коммит произвёл GitHub
родитель 949a19efc1
Коммит b84d913243

Просмотреть файл

@@ -522,7 +522,8 @@ func TestImportImportTeam(t *testing.T) {
require.NoError(t, err, "Failed to get team count.")
// we also assert that the team name can be upper case
teamName := "A" + model.NewId()
// Note there are no reserved team names starting with `Z`, making this flake-free.
teamName := "Z" + model.NewId()
sanitizedTeamName := strings.ToLower(teamName)
data := imports.TeamImportData{