diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-14 20:16:01 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-14 20:16:01 -0400 |
| commit | 97cbe8bd9aac7af05cc1988e94ebed2984fc890d (patch) | |
| tree | 95d77b40f6ec5ee10c399e06bff653d2df42385d | |
| parent | Fix env vars in tests (diff) | |
| download | cli-97cbe8bd9aac7af05cc1988e94ebed2984fc890d.zip | |
Fix db test
| -rw-r--r-- | internal/storage/db_test.go | 4 |
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) } |