[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 удалений

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

@@ -595,7 +595,7 @@ func TestImportImportChannel(t *testing.T) {
scheme2 := th.SetupChannelScheme()
// Import a Team.
teamName := model.NewId()
teamName := model.NewRandomTeamName()
th.App.ImportTeam(&TeamImportData{
Name: &teamName,
DisplayName: ptrStr("Display Name"),
@@ -862,7 +862,7 @@ func TestImportImportUser(t *testing.T) {
data.Password = ptrStr("TestPassword")
// Test team and channel memberships
teamName := model.NewId()
teamName := model.NewRandomTeamName()
th.App.ImportTeam(&TeamImportData{
Name: &teamName,
DisplayName: ptrStr("Display Name"),
@@ -1570,7 +1570,7 @@ func TestImportImportPost(t *testing.T) {
defer th.TearDown()
// Create a Team.
teamName := model.NewId()
teamName := model.NewRandomTeamName()
th.App.ImportTeam(&TeamImportData{
Name: &teamName,
DisplayName: ptrStr("Display Name"),
@@ -2510,7 +2510,7 @@ func TestImportPostAndRepliesWithAttachments(t *testing.T) {
defer th.TearDown()
// Create a Team.
teamName := model.NewId()
teamName := model.NewRandomTeamName()
th.App.ImportTeam(&TeamImportData{
Name: &teamName,
DisplayName: ptrStr("Display Name"),

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

@@ -143,7 +143,7 @@ func TestImportBulkImport(t *testing.T) {
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableCustomEmoji = true })
teamName := model.NewId()
teamName := model.NewRandomTeamName()
channelName := model.NewId()
username := model.NewId()
username2 := model.NewId()