Rehabilitate tests

This commit is contained in:
lash
2025-01-08 22:27:19 +00:00
parent ddefdd7fb3
commit df8c9aab0c
9 changed files with 16 additions and 43 deletions

View File

@@ -12,7 +12,6 @@ import (
"regexp"
"testing"
"git.grassecon.net/urdt/ussd/internal/storage"
"git.grassecon.net/urdt/ussd/internal/testutil"
"git.grassecon.net/urdt/ussd/internal/testutil/driver"
"github.com/gofrs/uuid"
@@ -106,7 +105,7 @@ func TestMain(m *testing.M) {
defer func() {
if *database == "postgres" {
ctx := context.Background()
connStr := storage.BuildConnStr()
connStr := "postgres://" //storage.BuildConnStr()
dbConn, err := pgxpool.New(ctx, connStr)
if err != nil {
log.Fatalf("Failed to connect to database for cleanup: %v", err)