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:
2026-04-13 02:07:27 +02:00
parent 3304084121
commit 25d00e3518
4 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -6,7 +6,7 @@ import (
func TestMigrationDown(t *testing.T) {
t.Run("revertir ultima migracion elimina registro y ejecuta down_sql", func(t *testing.T) {
db := openTestDB(t)
db := openMigrationTestDB(t)
dir := t.TempDir()
writeMigrationFile(t, dir, "001_create_users.sql",
@@ -42,7 +42,7 @@ func TestMigrationDown(t *testing.T) {
})
t.Run("revertir n migraciones revierte en orden descendente", func(t *testing.T) {
db := openTestDB(t)
db := openMigrationTestDB(t)
dir := t.TempDir()
writeMigrationFile(t, dir, "001_create_users.sql",
@@ -76,7 +76,7 @@ func TestMigrationDown(t *testing.T) {
})
t.Run("n cero no revierte nada", func(t *testing.T) {
db := openTestDB(t)
db := openMigrationTestDB(t)
dir := t.TempDir()
writeMigrationFile(t, dir, "001_create_users.sql",
@@ -96,7 +96,7 @@ func TestMigrationDown(t *testing.T) {
})
t.Run("base de datos sin migraciones retorna slice vacio", func(t *testing.T) {
db := openTestDB(t)
db := openMigrationTestDB(t)
dir := t.TempDir()
// Apply to create _migrations table