mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
update vendor and use single static
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user