lntest: fix linter errors

This commit is contained in:
Conner Fromknecht 2021-01-29 01:37:37 -08:00
parent b1fee734ec
commit 227fd45da2
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -11872,11 +11872,7 @@ func testSwitchOfflineDelivery(net *lntest.NetworkHarness, t *harnessTest) {
// Wait until all outstanding htlcs in the network have been settled. // Wait until all outstanding htlcs in the network have been settled.
err = wait.Predicate(func() bool { err = wait.Predicate(func() bool {
predErr = assertNumActiveHtlcs(nodes, 0) return assertNumActiveHtlcs(nodes, 0) == nil
if predErr != nil {
return false
}
return true
}, defaultTimeout) }, defaultTimeout)
if err != nil { if err != nil {
t.Fatalf("htlc mismatch: %v", predErr) t.Fatalf("htlc mismatch: %v", predErr)
@ -12200,11 +12196,7 @@ func testSwitchOfflineDeliveryPersistence(net *lntest.NetworkHarness, t *harness
// After reconnection succeeds, the settles should be propagated all // After reconnection succeeds, the settles should be propagated all
// the way back to the sender. All nodes should report no active htlcs. // the way back to the sender. All nodes should report no active htlcs.
err = wait.Predicate(func() bool { err = wait.Predicate(func() bool {
predErr = assertNumActiveHtlcs(nodes, 0) return assertNumActiveHtlcs(nodes, 0) == nil
if predErr != nil {
return false
}
return true
}, defaultTimeout) }, defaultTimeout)
if err != nil { if err != nil {
t.Fatalf("htlc mismatch: %v", predErr) t.Fatalf("htlc mismatch: %v", predErr)
@ -12467,11 +12459,7 @@ func testSwitchOfflineDeliveryOutgoingOffline(
// Wait for all payments to reach Carol. // Wait for all payments to reach Carol.
var predErr error var predErr error
err = wait.Predicate(func() bool { err = wait.Predicate(func() bool {
predErr = assertNumActiveHtlcs(nodes, numPayments) return assertNumActiveHtlcs(nodes, numPayments) == nil
if predErr != nil {
return false
}
return true
}, defaultTimeout) }, defaultTimeout)
if err != nil { if err != nil {
t.Fatalf("htlc mismatch: %v", predErr) t.Fatalf("htlc mismatch: %v", predErr)