From 7116563ff3d6957a471fb43c29254750469278cd Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 8 Sep 2020 20:18:19 +0530 Subject: [PATCH] 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 --- store/storetest/team_store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/store/storetest/team_store.go b/store/storetest/team_store.go index 679461682a..bd00e2b61b 100644 --- a/store/storetest/team_store.go +++ b/store/storetest/team_store.go @@ -511,7 +511,7 @@ func testTeamStoreSearchPrivate(t *testing.T, ss store.Store) { q := model.Team{} q.DisplayName = "FOOBARDISPLAYNAME" - q.Name = "whatever" + q.Name = "averylongname" q.Email = MakeEmail() q.Type = model.TEAM_OPEN 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", - "what", + "averyl", 1, q.Id, }, { "Search FooBar by name from text at the end of name", - "ever", + "ongname", 1, q.Id, },