channeldb/test: test with postgres

This commit is contained in:
Joost Jager
2021-07-16 18:07:30 +02:00
parent 7c048efa21
commit d997bbf6b3
13 changed files with 152 additions and 3 deletions

19
kvdb/kvdb_no_postgres.go Normal file
View File

@@ -0,0 +1,19 @@
// +build !kvdb_postgres
package kvdb
import (
"errors"
"github.com/lightningnetwork/lnd/kvdb/postgres"
)
const PostgresBackend = false
func NewPostgresFixture(dbName string) (postgres.Fixture, error) {
return nil, errors.New("postgres backend not available")
}
func StartEmbeddedPostgres() (func() error, error) {
return nil, errors.New("postgres backend not available")
}