From b84d9132439be0a5cf55e497d39bf6ee6644cf78 Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Mon, 14 Apr 2025 09:47:38 -0300 Subject: [PATCH] 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 --- server/channels/app/import_functions_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/channels/app/import_functions_test.go b/server/channels/app/import_functions_test.go index 5a00967f2e..8ce087b1f4 100644 --- a/server/channels/app/import_functions_test.go +++ b/server/channels/app/import_functions_test.go @@ -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{