refac: migration crash, real-database tests, site deleted during create, ruels out of the repo, lists

This commit is contained in:
Florian Sylvain committed 2026-11-03 05:06:04 +01:00
1 parent 680b9a1308
commit 9d284e65a9
62 files changed
+1858 -987

No files matched your search

+2 -4
View File
@@ -79,10 +79,7 @@ func TestLocalizationPersistence(t *testing.T) {
{name: "mysql", open: openContractMySQL},
{name: "postgres", open: openContractPostgres},
}
cases := []struct {
name string
run func(t *testing.T, db *gorm.DB)
}{
cases := []localizationCase{
{"Persistence additions are safe to migrate", func(t *testing.T, db *gorm.DB) {
migrator := db.Migrator()
created := seedLocalizedSite(t, db, "migrating", []entity.SiteLanguage{{Lang: "en", IsDefault: true, Enabled: true, Confirmed: true}}, nil)
@@ -272,6 +269,7 @@ func TestLocalizationPersistence(t *testing.T) {
}
}},
}
cases = append(cases, localizationConcurrencyCases()...)
for _, backend := range backends {
for _, c := range cases {
t.Run(backend.name+"/"+c.name, func(t *testing.T) {