TestComments/AddUser 2019/01/27 23:38:15 AddUserCredential: Error 1062: Duplicate entry ‘mar’ for key ‘login_name’
前面测video没问题,单纯添加测comments的后才报错的,难道clearTables() 没有把users表清空吗?
func TestComments(t *testing.T){
clearTables()
t.Run("AddUser",testAddUser)
t.Run("AddComments",testAddComments)
t.Run("ListComments",testListComments)
}