mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-02-23 13:54:25 +01:00
fix null pointer in test
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user