fix: rename openTestDB to openMigrationTestDB to avoid redeclaration with job_queue_test.go
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
func TestMigrationStatus(t *testing.T) {
|
||||
t.Run("migraciones en disco pero no en BD aparecen como pending", func(t *testing.T) {
|
||||
db := openTestDB(t)
|
||||
db := openMigrationTestDB(t)
|
||||
dir := t.TempDir()
|
||||
|
||||
writeMigrationFile(t, dir, "001_create_users.sql",
|
||||
@@ -29,7 +29,7 @@ func TestMigrationStatus(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("migraciones aplicadas aparecen con Applied=true y AppliedAt", func(t *testing.T) {
|
||||
db := openTestDB(t)
|
||||
db := openMigrationTestDB(t)
|
||||
dir := t.TempDir()
|
||||
|
||||
writeMigrationFile(t, dir, "001_create_users.sql",
|
||||
@@ -59,7 +59,7 @@ func TestMigrationStatus(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("migraciones aplicadas sin archivo en disco aparecen como orphaned", func(t *testing.T) {
|
||||
db := openTestDB(t)
|
||||
db := openMigrationTestDB(t)
|
||||
dir := t.TempDir()
|
||||
|
||||
writeMigrationFile(t, dir, "001_create_users.sql",
|
||||
@@ -89,7 +89,7 @@ func TestMigrationStatus(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("base de datos sin tabla _migrations retorna todas como pending", func(t *testing.T) {
|
||||
db := openTestDB(t)
|
||||
db := openMigrationTestDB(t)
|
||||
dir := t.TempDir()
|
||||
|
||||
writeMigrationFile(t, dir, "001_create_users.sql",
|
||||
|
||||
Reference in New Issue
Block a user