2024-12-24 18:11:25 +00:00
|
|
|
package database_test
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"os"
|
|
|
|
|
"path"
|
|
|
|
|
"queryorchestration/internal/database"
|
|
|
|
|
"testing"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func TestRunMigrations(t *testing.T) {
|
|
|
|
|
ctx := context.Background()
|
|
|
|
|
_, container := createDB(t, ctx)
|
|
|
|
|
defer container.Terminate(ctx)
|
|
|
|
|
|
2025-01-07 16:30:45 +00:00
|
|
|
database.RunMigrations(path.Join(os.Getenv("PWD"), "../.."))
|
2024-12-24 18:11:25 +00:00
|
|
|
}
|