feat: update
This commit is contained in:
@@ -74,3 +74,16 @@ func (s *PostsTestSuite) Test_BatchInsert() {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (s *PostsTestSuite) Test_BatchInsertUserPosts() {
|
||||
Convey("Test_Demo", s.T(), func() {
|
||||
database.Truncate(context.Background(), db, table.UserPosts.TableName())
|
||||
|
||||
count := 10
|
||||
for i := 0; i < count; i++ {
|
||||
if err := Users.Own(context.Background(), 1, int64(i)+1); err != nil {
|
||||
s.T().Fatal(err)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user