comment_new.go: create page before inserting comment
Fixes https://gitlab.com/commento/commento/issues/173
This commit is contained in:
@@ -20,8 +20,8 @@ func TestCommentCountBasics(t *testing.T) {
|
||||
return
|
||||
}
|
||||
|
||||
if counts["/path.html"] != 2 {
|
||||
t.Errorf("expected count=2 got count=%d", counts["/path.html"])
|
||||
if counts["/path.html"] != 3 {
|
||||
t.Errorf("expected count=3 got count=%d", counts["/path.html"])
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user