From 9d620c313562bda39a22de6bb8b1c36ea1096331 Mon Sep 17 00:00:00 2001 From: Domino Valdano <2644901+reductionista@users.noreply.github.com> Date: Wed, 11 Dec 2024 14:46:28 -0800 Subject: [PATCH] NewSqlxDB -> NewTestDB, DbUrlOrInMemory -> TestURL --- pkg/sqlutil/pg/pg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sqlutil/pg/pg.go b/pkg/sqlutil/pg/pg.go index fea17e632..25ed30d64 100644 --- a/pkg/sqlutil/pg/pg.go +++ b/pkg/sqlutil/pg/pg.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" ) -func NewSqlxDB(t testing.TB, dbURL string) *sqlx.DB { +func NewTestDB(t testing.TB, dbURL string) *sqlx.DB { err := RegisterTxDb(dbURL) if err != nil { t.Fatalf("failed to register txdb dialect: %s", err.Error()) @@ -25,7 +25,7 @@ func NewSqlxDB(t testing.TB, dbURL string) *sqlx.DB { return db } -func DbUrlOrInMemory(t testing.TB) string { +func TestURL(t testing.TB) string { dbURL, ok := os.LookupEnv("CL_DATABASE_URL") if ok { return dbURL