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

+2 -2
View File
@@ -7,9 +7,9 @@ import (
"github.com/lightningnetwork/lnd/kvdb/etcd"
)
// TestBackend is conditionally set to etcd when the kvdb_etcd build tag is
// EtcdBackend is conditionally set to etcd when the kvdb_etcd build tag is
// defined, allowing testing our database code with etcd backend.
const TestBackend = EtcdBackendName
const EtcdBackend = true
// GetEtcdTestBackend creates an embedded etcd backend for testing
// storig the database at the passed path.