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 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
|
||||
|
||||
Reference in New Issue
Block a user