summaryrefslogtreecommitdiffstats
path: root/api/post_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-08-28 07:51:17 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-08-28 07:51:17 -0400
commit2bc6451e39a4080832e0b6250f536972c42b1f48 (patch)
treed250f5271e5135a81e6115530c93024cdf82fec6 /api/post_test.go
parent02bbe79aa2a71c5ebde342b2a73c3d142a359945 (diff)
parent879fa084c9bea87f655dc3025928a251a845980a (diff)
downloadchat-2bc6451e39a4080832e0b6250f536972c42b1f48.tar.gz
chat-2bc6451e39a4080832e0b6250f536972c42b1f48.tar.bz2
chat-2bc6451e39a4080832e0b6250f536972c42b1f48.zip
Merge pull request #486 from asubset/master
Fix getParentsPosts() query
Diffstat (limited to 'api/post_test.go')
-rw-r--r--api/post_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/post_test.go b/api/post_test.go
index ac9adf358..85d92de3a 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")
}