mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-19154 - Fix flaky test TestGroupStore/MySQL/GetGroups/Get_g… (#12705)
This commit is contained in:
@@ -2018,7 +2018,7 @@ func testGetGroups(t *testing.T, ss store.Store) {
|
||||
require.Nil(t, err)
|
||||
|
||||
group2, err := ss.Group().Create(&model.Group{
|
||||
Name: model.NewId(),
|
||||
Name: model.NewId() + "-group-2",
|
||||
DisplayName: "group-2",
|
||||
RemoteId: model.NewId(),
|
||||
Source: model.GroupSourceLdap,
|
||||
@@ -2062,7 +2062,7 @@ func testGetGroups(t *testing.T, ss store.Store) {
|
||||
|
||||
// Create Group3
|
||||
group3, err := ss.Group().Create(&model.Group{
|
||||
Name: model.NewId(),
|
||||
Name: model.NewId() + "-group-3",
|
||||
DisplayName: "group-3",
|
||||
RemoteId: model.NewId(),
|
||||
Source: model.GroupSourceLdap,
|
||||
@@ -2122,7 +2122,7 @@ func testGetGroups(t *testing.T, ss store.Store) {
|
||||
user2.DeleteAt = 1
|
||||
ss.User().Update(user2, true)
|
||||
|
||||
group2NameSubstring := string([]rune(group2.Name)[2:5])
|
||||
group2NameSubstring := "group-2"
|
||||
|
||||
testCases := []struct {
|
||||
Name string
|
||||
|
||||
Reference in New Issue
Block a user