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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
949a19efc1
Коммит
b84d913243
@@ -522,7 +522,8 @@ func TestImportImportTeam(t *testing.T) {
|
|||||||
require.NoError(t, err, "Failed to get team count.")
|
require.NoError(t, err, "Failed to get team count.")
|
||||||
|
|
||||||
// we also assert that the team name can be upper case
|
// 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)
|
sanitizedTeamName := strings.ToLower(teamName)
|
||||||
|
|
||||||
data := imports.TeamImportData{
|
data := imports.TeamImportData{
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user