channeldb test: add TestOutgoingPaymentsMigration

This commit is contained in:
Johan T. Halseth
2019-05-23 20:05:28 +02:00
parent 693807cf6e
commit b7189ba028
3 changed files with 173 additions and 1 deletions

View File

@@ -124,7 +124,10 @@ func makeRandomFakePayment() (*OutgoingPayment, error) {
return nil, err
}
fakeInvoice.PaymentRequest = []byte("")
fakeInvoice.PaymentRequest, err = randomBytes(1, 50)
if err != nil {
return nil, err
}
preImg, err := randomBytes(32, 33)
if err != nil {