Get posts for a channel has_next attribute fix (#26901)
* Get posts for a channel has_next attribute fix * HasNext attribute test changes * tests fix --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
468813c04f
Коммит
4999c4a9c6
@@ -1774,6 +1774,8 @@ func TestGetPostsForChannel(t *testing.T) {
|
||||
require.Equal(t, post2.Id, posts.Order[2], "wrong order")
|
||||
require.Equal(t, post1.Id, posts.Order[3], "wrong order")
|
||||
|
||||
require.Nil(t, posts.HasNext, "HasNext should not be returned")
|
||||
|
||||
posts, resp, _ = c.GetPostsForChannel(context.Background(), th.BasicChannel.Id, 0, 3, resp.Etag, false, false)
|
||||
CheckEtag(t, posts, resp)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user