diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-05-15 17:44:04 +0200 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-05-15 11:44:04 -0400 |
commit | a5d2d6503d86240d032fa07d49d500fd0b72640a (patch) | |
tree | d0538bfa029ad113cd7b8f7980ea294b9f6ed0f8 /api4 | |
parent | c60d4fe04babbd09cf5d484262fa7601f4f8e2df (diff) | |
download | chat-a5d2d6503d86240d032fa07d49d500fd0b72640a.tar.gz chat-a5d2d6503d86240d032fa07d49d500fd0b72640a.tar.bz2 chat-a5d2d6503d86240d032fa07d49d500fd0b72640a.zip |
[PTL-6301] debug randon failing test (#6161)
* debug randon failing test
* add another check.
Diffstat (limited to 'api4')
-rw-r--r-- | api4/post_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/api4/post_test.go b/api4/post_test.go index c6e9dcb59..695597403 100644 --- a/api4/post_test.go +++ b/api4/post_test.go @@ -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 { |