From f08f7f77c3486af8b43eb963d2f5f0c056e87554 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Mon, 8 Jul 2019 07:55:46 +0100 Subject: [PATCH] MM-16759: Fix flaky group-store test. (#11527) --- store/storetest/group_store.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/store/storetest/group_store.go b/store/storetest/group_store.go index 54247fd7c1..72eb03ae7f 100644 --- a/store/storetest/group_store.go +++ b/store/storetest/group_store.go @@ -10,9 +10,10 @@ import ( "strings" "testing" + "github.com/stretchr/testify/require" + "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/store" - "github.com/stretchr/testify/require" ) func TestGroupStore(t *testing.T, ss store.Store) { @@ -2124,7 +2125,7 @@ func testGetGroups(t *testing.T, ss store.Store) { PerPage: 100, Resultf: func(groups []*model.Group) bool { for _, g := range groups { - if !strings.Contains(g.Name, group2NameSubstring) { + if !strings.Contains(g.Name, group2NameSubstring) && !strings.Contains(g.DisplayName, group2NameSubstring) { return false } }