Set license for group mentions flaky test (#23873)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4e92dde5b3
Коммит
dcb9fb9f29
@@ -1089,7 +1089,6 @@ func TestAllowChannelMentions(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestAllowGroupMentions(t *testing.T) {
|
func TestAllowGroupMentions(t *testing.T) {
|
||||||
t.Skip("MM-41972")
|
|
||||||
th := Setup(t).InitBasic()
|
th := Setup(t).InitBasic()
|
||||||
defer th.TearDown()
|
defer th.TearDown()
|
||||||
|
|
||||||
@@ -1115,6 +1114,9 @@ func TestAllowGroupMentions(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// we set the enterprise license for the rest of the tests
|
||||||
|
th.App.Srv().SetLicense(getLicWithSkuShortName(model.LicenseShortSkuEnterprise))
|
||||||
|
|
||||||
t.Run("should return true for a regular post with few channel members", func(t *testing.T) {
|
t.Run("should return true for a regular post with few channel members", func(t *testing.T) {
|
||||||
allowGroupMentions := th.App.allowGroupMentions(th.Context, post)
|
allowGroupMentions := th.App.allowGroupMentions(th.Context, post)
|
||||||
assert.True(t, allowGroupMentions)
|
assert.True(t, allowGroupMentions)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user