mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
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:
co-authored by
Mattermost Build
parent
949a19efc1
commit
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{
|
||||
|
||||
Reference in New Issue
Block a user