From d1e3ccf7cf58ff9c0ab460ccdf723ace61fa72cb Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 12 Mar 2024 10:04:48 -0400 Subject: [PATCH] MM-56776 Update mock to fix ChannelHasBeenCreated not being called for GMs (#500) --- server/automute_channel_test.go | 2 -- server/automute_test.go | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/server/automute_channel_test.go b/server/automute_channel_test.go index c4b9e8fa1..42a46b4b6 100644 --- a/server/automute_channel_test.go +++ b/server/automute_channel_test.go @@ -175,8 +175,6 @@ func TestUpdateAutomutingOnChannelCreated(t *testing.T) { }) t.Run("when a GM is created, should mute it for users with automuting enabled", func(t *testing.T) { - t.Skip("not working due to MM-56776") - p := newAutomuteTestPlugin(t) channel := &model.Channel{ diff --git a/server/automute_test.go b/server/automute_test.go index 40fd4b54d..00964ee85 100644 --- a/server/automute_test.go +++ b/server/automute_test.go @@ -57,10 +57,7 @@ func (a *AutomuteAPIMock) CreateChannel(channel *model.Channel) (*model.Channel, a.channels[channel.Id] = channel - // This should be called for all channels, but due to MM-56776, it's currently not called for GM channels - if channel.Type != model.ChannelTypeGroup { - a.plugin.ChannelHasBeenCreated(&plugin.Context{}, channel) - } + a.plugin.ChannelHasBeenCreated(&plugin.Context{}, channel) return channel, nil }