kvdb: unify how the db backend for tests is set

This commit is contained in:
Chris Geihsler authored and Elle Mouton committed 2023-01-23 09:05:11 +02:00
1 parent 170160f28a
commit 3d91bb65f7
3 files changed
+22 -18

No files matched your search

+3 -3
View File
@@ -9,9 +9,9 @@ import (
"github.com/lightningnetwork/lnd/kvdb/etcd"
)
// TestBackend is conditionally set to bdb when the kvdb_etcd build tag is
// not defined, allowing testing our database code with bolt backend.
const TestBackend = BoltBackendName
// EtcdBackend is conditionally set to false when the kvdb_etcd build tag is not
// defined. This will allow testing of other database backends.
const EtcdBackend = false
var errEtcdNotAvailable = fmt.Errorf("etcd backend not available")