MM-27953: Fix flaky test TestTeamStore//SearchPrivate (#15409)
We got hit by yet another random text search issue, but this was on the more extreme end because this was a string of length 4 and still it collided. I am not sure if there is a fool proof solution to this than just going for a larger string. https://mattermost.atlassian.net/browse/MM-27953
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d4d69850b2
Коммит
7116563ff3
@@ -511,7 +511,7 @@ func testTeamStoreSearchPrivate(t *testing.T, ss store.Store) {
|
|||||||
|
|
||||||
q := model.Team{}
|
q := model.Team{}
|
||||||
q.DisplayName = "FOOBARDISPLAYNAME"
|
q.DisplayName = "FOOBARDISPLAYNAME"
|
||||||
q.Name = "whatever"
|
q.Name = "averylongname"
|
||||||
q.Email = MakeEmail()
|
q.Email = MakeEmail()
|
||||||
q.Type = model.TEAM_OPEN
|
q.Type = model.TEAM_OPEN
|
||||||
q.AllowOpenInvite = false
|
q.AllowOpenInvite = false
|
||||||
@@ -545,13 +545,13 @@ func testTeamStoreSearchPrivate(t *testing.T, ss store.Store) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Search FooBar by name from text at the beginning name",
|
"Search FooBar by name from text at the beginning name",
|
||||||
"what",
|
"averyl",
|
||||||
1,
|
1,
|
||||||
q.Id,
|
q.Id,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Search FooBar by name from text at the end of name",
|
"Search FooBar by name from text at the end of name",
|
||||||
"ever",
|
"ongname",
|
||||||
1,
|
1,
|
||||||
q.Id,
|
q.Id,
|
||||||
},
|
},
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user