From 5264264333f211c9d40108955e167d28fa73f77d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Wed, 23 Jul 2025 21:39:11 -0400 Subject: Use DSN for handling connection parameters --- internal/bolttest/db.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'internal/bolttest') diff --git a/internal/bolttest/db.go b/internal/bolttest/db.go index 743b8fc..3b75c61 100644 --- a/internal/bolttest/db.go +++ b/internal/bolttest/db.go @@ -29,12 +29,8 @@ func NewTestDB(t *testing.T) storage.DB { func NewTestConnectionConfig() configloader.ConnectionConfig { return configloader.ConnectionConfig{ + DSN: os.Getenv("BOLT_DB_DSN"), Driver: os.Getenv("BOLT_DB_DRIVER"), - DBName: os.Getenv("BOLT_DB_NAME"), - Host: os.Getenv("BOLT_DB_HOST"), - Port: os.Getenv("BOLT_DB_PORT"), - User: os.Getenv("BOLT_DB_USER"), - Password: os.Getenv("BOLT_DB_PASSWORD"), MigrationsTable: os.Getenv("BOLT_DB_MIGRATIONS_TABLE"), } } -- cgit v1.2.3