diff --git a/app/post_test.go b/app/post_test.go index e3168a47c6..da87cc4539 100644 --- a/app/post_test.go +++ b/app/post_test.go @@ -1108,7 +1108,6 @@ func TestCreatePostAsUser(t *testing.T) { }) t.Run("logs warning for user not in channel", func(t *testing.T) { - t.Skip("MM-43871") th := Setup(t).InitBasic() defer th.TearDown() user := th.CreateUser() @@ -1123,6 +1122,8 @@ func TestCreatePostAsUser(t *testing.T) { _, appErr := th.App.CreatePostAsUser(th.Context, post, "", true) require.Nil(t, appErr) + require.NoError(t, th.TestLogger.Flush()) + testlib.AssertLog(t, th.LogBuffer, mlog.LvlWarn.Name, "Failed to get membership") }) @@ -1146,6 +1147,8 @@ func TestCreatePostAsUser(t *testing.T) { _, appErr = th.App.CreatePostAsUser(th.Context, post, "", true) require.Nil(t, appErr) + require.NoError(t, th.TestLogger.Flush()) + testlib.AssertNoLog(t, th.LogBuffer, mlog.LvlWarn.Name, "Failed to get membership") })