mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
fix: unit test of dm failed occasionally (#3369)
This commit is contained in:
@ -394,11 +394,12 @@ func Test_DB_BatchInsert_Struct(t *testing.T) {
|
||||
// batch insert struct
|
||||
table := "A_tables"
|
||||
createInitTable(table)
|
||||
defer dropTable(table)
|
||||
gtest.C(t, func(t *gtest.T) {
|
||||
user := &User{
|
||||
ID: 700,
|
||||
AccountName: "BatchInsert_Struct_700",
|
||||
// CreatedTime: time.Now(),
|
||||
CreatedTime: time.Now(),
|
||||
}
|
||||
result, err := db.Model(table).Insert(user)
|
||||
t.AssertNil(err)
|
||||
|
||||
Reference in New Issue
Block a user