itest: silence depreciation warnings
This commit is contained in:
parent
193d149d48
commit
54ed6c271b
@ -706,7 +706,7 @@ func testSendToRouteErrorPropagation(net *lntest.NetworkHarness, t *harnessTest)
|
|||||||
|
|
||||||
// Using Alice as the source, pay to the 5 invoices from Bob created above.
|
// Using Alice as the source, pay to the 5 invoices from Bob created above.
|
||||||
ctxt, _ = context.WithTimeout(ctxb, defaultTimeout)
|
ctxt, _ = context.WithTimeout(ctxb, defaultTimeout)
|
||||||
alicePayStream, err := net.Alice.SendToRoute(ctxt)
|
alicePayStream, err := net.Alice.SendToRoute(ctxt) // nolint:staticcheck
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create payment stream for alice: %v", err)
|
t.Fatalf("unable to create payment stream for alice: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -5523,7 +5523,7 @@ func testInvoiceSubscriptions(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
|
|
||||||
// The invoice update should exactly match the invoice created
|
// The invoice update should exactly match the invoice created
|
||||||
// above, but should now be settled and have SettleDate
|
// above, but should now be settled and have SettleDate
|
||||||
if !invoiceUpdate.Settled {
|
if !invoiceUpdate.Settled { // nolint:staticcheck
|
||||||
t.Fatalf("invoice not settled but should be")
|
t.Fatalf("invoice not settled but should be")
|
||||||
}
|
}
|
||||||
if invoiceUpdate.SettleDate == 0 {
|
if invoiceUpdate.SettleDate == 0 {
|
||||||
@ -5621,7 +5621,7 @@ func testInvoiceSubscriptions(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
|
|
||||||
// We should now get the ith invoice we added, as they should
|
// We should now get the ith invoice we added, as they should
|
||||||
// be returned in order.
|
// be returned in order.
|
||||||
if invoiceUpdate.Settled {
|
if invoiceUpdate.Settled { // nolint:staticcheck
|
||||||
t.Fatalf("should have only received add events")
|
t.Fatalf("should have only received add events")
|
||||||
}
|
}
|
||||||
originalInvoice := newInvoices[i]
|
originalInvoice := newInvoices[i]
|
||||||
@ -5676,7 +5676,7 @@ func testInvoiceSubscriptions(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
|
|
||||||
// We should now get the ith invoice we added, as they should
|
// We should now get the ith invoice we added, as they should
|
||||||
// be returned in order.
|
// be returned in order.
|
||||||
if !invoiceUpdate.Settled {
|
if !invoiceUpdate.Settled { // nolint:staticcheck
|
||||||
t.Fatalf("should have only received settle events")
|
t.Fatalf("should have only received settle events")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9061,7 +9061,7 @@ func testNodeAnnouncement(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
for _, update := range graphUpdate.NodeUpdates {
|
for _, update := range graphUpdate.NodeUpdates {
|
||||||
if update.IdentityKey == nodePubKey {
|
if update.IdentityKey == nodePubKey {
|
||||||
assertAddrs(
|
assertAddrs(
|
||||||
update.Addresses,
|
update.Addresses, // nolint:staticcheck
|
||||||
targetAddrs...,
|
targetAddrs...,
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user