chore[ci skip]: test remove unnecessary params

This commit is contained in:
a631807682 2022-08-02 14:37:29 +08:00
parent e8aad04d87
commit 9916a99d54
No known key found for this signature in database
GPG Key ID: 137D1D75522168AB

View File

@ -102,14 +102,14 @@ func TestPreparedStmtDeadlock(t *testing.T) {
wg := sync.WaitGroup{}
for i := 0; i < 2; i++ {
wg.Add(1)
go func(j int) {
go func() {
user := User{Name: "jinzhu"}
tx.Create(&user)
var result User
tx.First(&result)
wg.Done()
}(i)
}()
}
wg.Wait()
}