diff options
author | Jason Rossman <Jason_Rossman@playstation.sony.com> | 2015-08-27 12:45:47 -0600 |
---|---|---|
committer | Jason Rossman <Jason_Rossman@playstation.sony.com> | 2015-08-27 12:45:47 -0600 |
commit | 879fa084c9bea87f655dc3025928a251a845980a (patch) | |
tree | bedf1c2bf6d21c2efcbc1f023ba892866f32eae5 /api | |
parent | 4aafff7f83359531cb2e110f4b7c080e33407cc3 (diff) | |
download | chat-879fa084c9bea87f655dc3025928a251a845980a.tar.gz chat-879fa084c9bea87f655dc3025928a251a845980a.tar.bz2 chat-879fa084c9bea87f655dc3025928a251a845980a.zip |
fix GetParentPosts() query
Diffstat (limited to 'api')
-rw-r--r-- | api/post_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/post_test.go b/api/post_test.go index cbba83af6..af2e4f326 100644 --- a/api/post_test.go +++ b/api/post_test.go @@ -331,7 +331,7 @@ func TestGetPosts(t *testing.T) { t.Fatal("wrong order") } - if len(r1.Posts) != 4 { + if len(r1.Posts) != 2 { // 3a1 and 3; 3a1's parent already there t.Fatal("wrong size") } @@ -345,7 +345,7 @@ func TestGetPosts(t *testing.T) { t.Fatal("wrong order") } - if len(r2.Posts) != 4 { + if len(r2.Posts) != 3 { // 2 and 1a1; + 1a1's parent t.Log(r2.Posts) t.Fatal("wrong size") } |