fixed testing
All checks were successful
GoLang Tests / Run Go Tests (push) Successful in 50s
GoLang Tests / Build Go Image and Upload (push) Successful in 1m50s

This commit is contained in:
2025-09-04 09:59:31 +02:00
parent a2cd118644
commit 0af65f52f3
7 changed files with 39 additions and 21 deletions

View File

@@ -36,10 +36,12 @@ func SetupDBFixture(t *testing.T) *DBFixture {
t.Fatalf("failed to connect to database: %v", err)
}
// err = MigrateDB(db, "file://../../migrations")
// if err != nil && err != migrate.ErrNoChange {
// t.Fatalf("Failed to migrate database: %v", err)
// }
defer db.Close()
err = MigrateDB(db, "file://../../migrations")
if err != nil && err != migrate.ErrNoChange {
t.Fatalf("Failed to migrate database: %v", err)
}
tx, err := db.Begin()
if err != nil {