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>
This commit is contained in:
Jesse Hallam
2025-04-14 12:47:38 +00:00
committed by GitHub
co-authored by Mattermost Build
parent 949a19efc1
commit b84d913243
+2 -1
View File
@@ -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{