From e6b0141b108531d9d935d093566d04f2f8696977 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 26 Oct 2020 14:21:05 +0100 Subject: [PATCH] itest: fix typos, formatting --- lntest/itest/lnd_test.go | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/lntest/itest/lnd_test.go b/lntest/itest/lnd_test.go index b4491983..835cbded 100644 --- a/lntest/itest/lnd_test.go +++ b/lntest/itest/lnd_test.go @@ -1518,7 +1518,7 @@ func testUnconfirmedChannelFunding(net *lntest.NetworkHarness, t *harnessTest) { // testPaymentFollowingChannelOpen tests that the channel transition from // 'pending' to 'open' state does not cause any inconsistencies within other -// subsystems trying to udpate the channel state in the db. We follow this +// subsystems trying to update the channel state in the db. We follow this // transition with a payment that updates the commitment state and verify that // the pending state is up to date. func testPaymentFollowingChannelOpen(net *lntest.NetworkHarness, t *harnessTest) { @@ -1550,7 +1550,7 @@ func testPaymentFollowingChannelOpen(net *lntest.NetworkHarness, t *harnessTest) t.Fatalf("Bob restart failed: %v", err) } - // We ensure that Bob reconnets to Alice. + // We ensure that Bob reconnects to Alice. ctxt, _ = context.WithTimeout(ctxb, defaultTimeout) if err := net.EnsureConnected(ctxt, net.Bob, net.Alice); err != nil { t.Fatalf("peers unable to reconnect after restart: %v", err) @@ -1559,7 +1559,7 @@ func testPaymentFollowingChannelOpen(net *lntest.NetworkHarness, t *harnessTest) // We mine one block for the channel to be confirmed. _ = mineBlocks(t, net, 6, 1)[0] - // We verify that the chanel is open from both nodes point of view. + // We verify that the channel is open from both nodes point of view. ctxt, cancel = context.WithTimeout(ctxb, defaultTimeout) defer cancel() assertNumOpenChannelsPending(ctxt, t, net.Alice, net.Bob, 0) @@ -1575,14 +1575,11 @@ func testPaymentFollowingChannelOpen(net *lntest.NetworkHarness, t *harnessTest) // Send payment to Bob so that a channel update to disk will be // executed. - sendAndAssertSuccess( - t, net.Alice, - &routerrpc.SendPaymentRequest{ - PaymentRequest: bobPayReqs[0], - TimeoutSeconds: 60, - FeeLimitSat: 1000000, - }, - ) + sendAndAssertSuccess(t, net.Alice, &routerrpc.SendPaymentRequest{ + PaymentRequest: bobPayReqs[0], + TimeoutSeconds: 60, + FeeLimitSat: 1000000, + }) // At this point we want to make sure the channel is opened and not // pending. @@ -14054,7 +14051,7 @@ func getPaymentResult(stream routerrpc.Router_SendPaymentV2Client) ( // TestLightningNetworkDaemon performs a series of integration tests amongst a // programmatically driven network of lnd nodes. func TestLightningNetworkDaemon(t *testing.T) { - // If no tests are regsitered, then we can exit early. + // If no tests are registered, then we can exit early. if len(testsCases) == 0 { t.Skip("integration tests not selected with flag 'rpctest'") }