channeldb/test: test with postgres

This commit is contained in:
Joost Jager committed 2021-10-29 10:54:44 +02:00
1 parent 7c048efa21
commit d997bbf6b3
13 files changed
+152 -3

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
// +build kvdb_postgres
package kvdb
import "github.com/lightningnetwork/lnd/kvdb/postgres"
const PostgresBackend = true
func NewPostgresFixture(dbName string) (postgres.Fixture, error) {
return postgres.NewFixture(dbName)
}
func StartEmbeddedPostgres() (func() error, error) {
return postgres.StartEmbeddedPostgres()
}