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>
Этот коммит содержится в:
Arya Khochare
2024-08-21 11:00:42 +05:30
коммит произвёл GitHub
родитель 468813c04f
Коммит 4999c4a9c6
4 изменённых файлов: 13 добавлений и 11 удалений

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

@@ -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)