- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestTransactionWithDefaultTimeout (0.28 sec)
-
tests/transaction_test.go
return tx2.Transaction(func(tx3 *gorm.DB) error { return tx3.Where("user_id", user.ID).Delete(&Account{}).Error }) }) if err != nil { t.Error(err) } } func TestTransactionWithDefaultTimeout(t *testing.T) { db, err := OpenTestConnection(&gorm.Config{DefaultTransactionTimeout: 2 * time.Second}) if err != nil { t.Fatalf("failed to connect database, got error %v", err) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 13.3K bytes - Viewed (0)