comment_approve_test.go: include unapproved listing

This commit is contained in:
Adhityaa 2018-06-07 23:19:13 +05:30
parent 1df933c3c0
commit 3252c30dd9

View File

@ -17,7 +17,7 @@ func TestCommentApproveBasics(t *testing.T) {
return
}
if c, _, _ := commentList("anonymous", "example.com", "/path.html", false); c[0].State != "approved" {
if c, _, _ := commentList("anonymous", "example.com", "/path.html", true); c[0].State != "approved" {
t.Errorf("expected state = approved got state = %s", c[0].State)
return
}