aboutsummaryrefslogtreecommitdiffstats
path: root/internal/storage
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-03-14 20:16:01 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2024-03-14 20:16:01 -0400
commit97cbe8bd9aac7af05cc1988e94ebed2984fc890d (patch)
tree95d77b40f6ec5ee10c399e06bff653d2df42385d /internal/storage
parentFix env vars in tests (diff)
downloadcli-97cbe8bd9aac7af05cc1988e94ebed2984fc890d.zip
Fix db test
Diffstat (limited to 'internal/storage')
-rw-r--r--internal/storage/db_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/storage/db_test.go b/internal/storage/db_test.go
index 5027cd1..119f57f 100644
--- a/internal/storage/db_test.go
+++ b/internal/storage/db_test.go
@@ -30,8 +30,8 @@ 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_CONN_HOST", "")
- t.Setenv("BOLT_DB_CONN_PORT", "")
+ t.Setenv("BOLT_DB_HOST", "")
+ t.Setenv("BOLT_DB_PORT", "")
_, err := storage.NewDB(bolttest.NewTestConnectionConfig())
assert.ErrorIs(t, err, storage.ErrUnableToConnect)
}