Set license for group mentions flaky test (#23873)

Этот коммит содержится в:
Miguel de la Cruz
2023-06-28 10:51:32 +02:00
коммит произвёл GitHub
родитель 4e92dde5b3
Коммит dcb9fb9f29

Просмотреть файл

@@ -1089,7 +1089,6 @@ func TestAllowChannelMentions(t *testing.T) {
}
func TestAllowGroupMentions(t *testing.T) {
t.Skip("MM-41972")
th := Setup(t).InitBasic()
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) {
allowGroupMentions := th.App.allowGroupMentions(th.Context, post)
assert.True(t, allowGroupMentions)