[MM-19892] Fix failing test TestImportBulkImport (#13003)

Automatic Merge
Этот коммит содержится в:
Christopher Poile
2019-12-04 11:31:52 -05:00
коммит произвёл mattermod
родитель 72f3bb10c7
Коммит 6e6a44764c
6 изменённых файлов: 20 добавлений и 12 удалений

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

@@ -146,6 +146,15 @@ func NewId() string {
return b.String()
}
// NewRandomTeamName is a NewId that will be a valid team name.
func NewRandomTeamName() string {
teamName := NewId()
for IsReservedTeamName(teamName) {
teamName = NewId()
}
return teamName
}
func NewRandomString(length int) string {
var b bytes.Buffer
str := make([]byte, length+8)