kvdb/postgres: fix context cancellation

This commit is contained in:
Joost Jager committed 2021-12-22 14:54:43 +01:00
1 parent 62a2f3c809
commit 0cae55c162
5 files changed
+69 -47

No files matched your search

+3 -1
View File
@@ -10,6 +10,7 @@ import (
"encoding/hex"
"fmt"
"strings"
"time"
"github.com/btcsuite/btcwallet/walletdb"
embeddedpostgres "github.com/fergusstrange/embedded-postgres"
@@ -81,7 +82,8 @@ func NewFixture(dbName string) (*fixture, error) {
db, err := newPostgresBackend(
context.Background(),
&Config{
Dsn: dsn,
Dsn: dsn,
Timeout: time.Minute,
},
prefix,
)