18 lines
316 B
Go
18 lines
316 B
Go
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)
|
|
|
|
database.RunMigrations(path.Join(os.Getenv("PWD"), "../../../.."))
|
|
}
|