MM-19154 - Fix flaky test TestGroupStore/MySQL/GetGroups/Get_g… (#12705)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
42b011b81d
Коммит
4225977966
@@ -2018,7 +2018,7 @@ func testGetGroups(t *testing.T, ss store.Store) {
|
|||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
|
|
||||||
group2, err := ss.Group().Create(&model.Group{
|
group2, err := ss.Group().Create(&model.Group{
|
||||||
Name: model.NewId(),
|
Name: model.NewId() + "-group-2",
|
||||||
DisplayName: "group-2",
|
DisplayName: "group-2",
|
||||||
RemoteId: model.NewId(),
|
RemoteId: model.NewId(),
|
||||||
Source: model.GroupSourceLdap,
|
Source: model.GroupSourceLdap,
|
||||||
@@ -2062,7 +2062,7 @@ func testGetGroups(t *testing.T, ss store.Store) {
|
|||||||
|
|
||||||
// Create Group3
|
// Create Group3
|
||||||
group3, err := ss.Group().Create(&model.Group{
|
group3, err := ss.Group().Create(&model.Group{
|
||||||
Name: model.NewId(),
|
Name: model.NewId() + "-group-3",
|
||||||
DisplayName: "group-3",
|
DisplayName: "group-3",
|
||||||
RemoteId: model.NewId(),
|
RemoteId: model.NewId(),
|
||||||
Source: model.GroupSourceLdap,
|
Source: model.GroupSourceLdap,
|
||||||
@@ -2122,7 +2122,7 @@ func testGetGroups(t *testing.T, ss store.Store) {
|
|||||||
user2.DeleteAt = 1
|
user2.DeleteAt = 1
|
||||||
ss.User().Update(user2, true)
|
ss.User().Update(user2, true)
|
||||||
|
|
||||||
group2NameSubstring := string([]rune(group2.Name)[2:5])
|
group2NameSubstring := "group-2"
|
||||||
|
|
||||||
testCases := []struct {
|
testCases := []struct {
|
||||||
Name string
|
Name string
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user