MM-44922: Flush log buffer before assert (#20795)
Summary Flush log buffer before asserting log text. Ticket Link https://mattermost.atlassian.net/browse/MM-44922
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
afbbc31205
Коммит
15b6046a62
@@ -3100,7 +3100,6 @@ func TestImportImportPost(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("Reply CreateAt before parent post CreateAt", func(t *testing.T) {
|
||||
t.Skip("MM-44922")
|
||||
now := model.GetMillis()
|
||||
before := now - 10
|
||||
data := LineImportWorkerData{
|
||||
@@ -3128,6 +3127,7 @@ func TestImportImportPost(t *testing.T) {
|
||||
posts, nErr := th.App.Srv().Store.Post().GetPostsCreatedAt(channel.Id, now)
|
||||
require.NoError(t, nErr)
|
||||
require.Len(t, posts, 2, "Unexpected number of posts found.")
|
||||
require.NoError(t, th.TestLogger.Flush())
|
||||
testlib.AssertLog(t, th.LogBuffer, mlog.LvlWarn.Name, "Reply CreateAt is before parent post CreateAt, setting it to parent post CreateAt")
|
||||
|
||||
rootPost := posts[0]
|
||||
|
||||
Ссылка в новой задаче
Block a user