update vendor and use single static

This commit is contained in:
deepzz0
2017-07-08 21:54:39 +08:00
parent da7b726e8d
commit 3ff5977941
312 changed files with 70988 additions and 77 deletions

View File

@@ -16,14 +16,10 @@ func TestPostComment(t *testing.T) {
AuthorName: "deepzz",
}
id := PostComment(pc)
if id == "" {
t.Error("post failed")
id, err := PostComment(pc)
if err != nil {
t.Error(err)
return
}
t.Log("post success")
}
func TestApprovePost(t *testing.T) {
ApprovePost()
t.Log("post success", id)
}