itest: fix code lint

This commit is contained in:
yyforyongyu 2020-09-24 20:51:58 +08:00
parent 48f6c47b17
commit 86779fb6a5
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868
2 changed files with 2 additions and 6 deletions

@ -197,7 +197,6 @@ out:
// an unknown payment hash.
// TODO(roasbeef): return failure response rather than failing entire
// stream on payment error.
ctxt, _ = context.WithTimeout(ctxb, defaultTimeout)
sendReq := &routerrpc.SendPaymentRequest{
PaymentHash: makeFakePayHash(t),
Dest: carol.PubKey[:],

@ -1097,7 +1097,7 @@ func channelCommitType(node *lntest.HarnessNode,
}
// assertChannelBalanceResp makes a ChannelBalance request and checks the
// returned reponse matches the expected.
// returned response matches the expected.
func assertChannelBalanceResp(t *harnessTest,
node *lntest.HarnessNode, expected *lnrpc.ChannelBalanceResponse) {
@ -11202,10 +11202,7 @@ func testSwitchCircuitPersistence(net *lntest.NetworkHarness, t *harnessTest) {
// the nodes in the network.
err = wait.Predicate(func() bool {
predErr = assertNumActiveHtlcs(nodes, 0)
if predErr != nil {
return false
}
return true
return predErr == nil
}, time.Second*15)
if err != nil {