Skip to content

Commit

Permalink
itest: silence depreciation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed May 26, 2021
1 parent 98822a1 commit 427fa22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lntest/itest/lnd_routing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ func testSendToRouteErrorPropagation(net *lntest.NetworkHarness, t *harnessTest)

// Using Alice as the source, pay to the 5 invoices from Bob created above.
ctxt, _ = context.WithTimeout(ctxb, defaultTimeout)
alicePayStream, err := net.Alice.SendToRoute(ctxt)
alicePayStream, err := net.Alice.SendToRoute(ctxt) // nolint:staticcheck
if err != nil {
t.Fatalf("unable to create payment stream for alice: %v", err)
}
Expand Down
8 changes: 4 additions & 4 deletions lntest/itest/lnd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5575,7 +5575,7 @@ func testInvoiceSubscriptions(net *lntest.NetworkHarness, t *harnessTest) {

// The invoice update should exactly match the invoice created
// 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")
}
if invoiceUpdate.SettleDate == 0 {
Expand Down Expand Up @@ -5673,7 +5673,7 @@ func testInvoiceSubscriptions(net *lntest.NetworkHarness, t *harnessTest) {

// We should now get the ith invoice we added, as they should
// be returned in order.
if invoiceUpdate.Settled {
if invoiceUpdate.Settled { // nolint:staticcheck
t.Fatalf("should have only received add events")
}
originalInvoice := newInvoices[i]
Expand Down Expand Up @@ -5728,7 +5728,7 @@ func testInvoiceSubscriptions(net *lntest.NetworkHarness, t *harnessTest) {

// We should now get the ith invoice we added, as they should
// be returned in order.
if !invoiceUpdate.Settled {
if !invoiceUpdate.Settled { // nolint:staticcheck
t.Fatalf("should have only received settle events")
}

Expand Down Expand Up @@ -9190,7 +9190,7 @@ func testNodeAnnouncement(net *lntest.NetworkHarness, t *harnessTest) {
for _, update := range graphUpdate.NodeUpdates {
if update.IdentityKey == nodePubKey {
assertAddrs(
update.Addresses,
update.Addresses, // nolint:staticcheck
targetAddrs...,
)
return
Expand Down

0 comments on commit 427fa22

Please sign in to comment.