diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-07-23 21:39:11 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-07-23 21:39:11 -0400 |
| commit | 5264264333f211c9d40108955e167d28fa73f77d (patch) | |
| tree | 6801a3d0460360bff5bc0b76ac482fa774e97043 /internal/storage/db_test.go | |
| parent | Fix contributing link (diff) | |
| download | cli-5264264333f211c9d40108955e167d28fa73f77d.zip | |
Use DSN for handling connection parameters
Diffstat (limited to 'internal/storage/db_test.go')
| -rw-r--r-- | internal/storage/db_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/storage/db_test.go b/internal/storage/db_test.go index f6baafe..b5f296d 100644 --- a/internal/storage/db_test.go +++ b/internal/storage/db_test.go @@ -30,8 +30,7 @@ func TestNewDB_UnsupportedDriver(t *testing.T) { func TestNewDB_UnableToConnect(t *testing.T) { driver := os.Getenv("BOLT_DB_DRIVER") if driver != "sqlite3" { - t.Setenv("BOLT_DB_HOST", "") - t.Setenv("BOLT_DB_PORT", "") + t.Setenv("BOLT_DB_DSN", "") _, err := storage.NewDB(bolttest.NewTestConnectionConfig()) assert.ErrorIs(t, err, storage.ErrUnableToConnect) } |