channeldb/test: test with postgres
This commit is contained in:
13 files changed
+152
-3
No files matched your search
@@ -25,6 +25,11 @@ import (
|
||||
func TestOpenWithCreate(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
// Checking for db file existence is not possible with postgres.
|
||||
if kvdb.PostgresBackend {
|
||||
t.Skip()
|
||||
}
|
||||
|
||||
// First, create a temporary directory to be used for the duration of
|
||||
// this test.
|
||||
tempDirName, err := ioutil.TempDir("", "channeldb")
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package channeldb
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/lightningnetwork/lnd/kvdb"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
kvdb.RunTests(m)
|
||||
}
|
||||
Reference in new issue
Block a user