mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[PTL-6301] debug randon failing test (#6161)
* debug randon failing test * add another check.
This commit is contained in:
committed by
Harrison Healey
parent
c60d4fe04b
commit
a5d2d6503d
@@ -423,12 +423,16 @@ func TestGetPostsForChannel(t *testing.T) {
|
||||
posts, resp = Client.GetPostsSince(th.BasicChannel.Id, time)
|
||||
CheckNoError(t, resp)
|
||||
|
||||
if len(posts.Posts) != 2 {
|
||||
t.Log(posts.Posts)
|
||||
t.Fatal("should return 2 posts")
|
||||
}
|
||||
|
||||
found := make([]bool, 2)
|
||||
for _, p := range posts.Posts {
|
||||
if p.CreateAt < time {
|
||||
t.Fatal("bad create at for post returned")
|
||||
}
|
||||
|
||||
if p.Id == post4.Id {
|
||||
found[0] = true
|
||||
} else if p.Id == post5.Id {
|
||||
|
||||
Reference in New Issue
Block a user