fix null pointer in test

This commit is contained in:
kiwiidb
2023-06-22 16:57:25 +02:00
parent def32f2d45
commit f4f83dc584

View File

@@ -4,10 +4,13 @@ import (
"testing"
"github.com/getAlby/lndhub.go/db/models"
"github.com/getAlby/lndhub.go/lnd"
"github.com/stretchr/testify/assert"
)
var svc = &LndhubService{}
var svc = &LndhubService{
LndClient: &lnd.LNDWrapper{IdentityPubkey: "123pubkey"},
}
func TestCalcFeeWithInvoiceLessThan1000(t *testing.T) {
invoice := &models.Invoice{