itest: fix typos, formatting
This commit is contained in:
parent
dc16869d72
commit
e6b0141b10
@ -1518,7 +1518,7 @@ func testUnconfirmedChannelFunding(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
|
|
||||||
// testPaymentFollowingChannelOpen tests that the channel transition from
|
// testPaymentFollowingChannelOpen tests that the channel transition from
|
||||||
// 'pending' to 'open' state does not cause any inconsistencies within other
|
// '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
|
// transition with a payment that updates the commitment state and verify that
|
||||||
// the pending state is up to date.
|
// the pending state is up to date.
|
||||||
func testPaymentFollowingChannelOpen(net *lntest.NetworkHarness, t *harnessTest) {
|
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)
|
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)
|
ctxt, _ = context.WithTimeout(ctxb, defaultTimeout)
|
||||||
if err := net.EnsureConnected(ctxt, net.Bob, net.Alice); err != nil {
|
if err := net.EnsureConnected(ctxt, net.Bob, net.Alice); err != nil {
|
||||||
t.Fatalf("peers unable to reconnect after restart: %v", err)
|
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.
|
// We mine one block for the channel to be confirmed.
|
||||||
_ = mineBlocks(t, net, 6, 1)[0]
|
_ = 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)
|
ctxt, cancel = context.WithTimeout(ctxb, defaultTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
assertNumOpenChannelsPending(ctxt, t, net.Alice, net.Bob, 0)
|
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
|
// Send payment to Bob so that a channel update to disk will be
|
||||||
// executed.
|
// executed.
|
||||||
sendAndAssertSuccess(
|
sendAndAssertSuccess(t, net.Alice, &routerrpc.SendPaymentRequest{
|
||||||
t, net.Alice,
|
PaymentRequest: bobPayReqs[0],
|
||||||
&routerrpc.SendPaymentRequest{
|
TimeoutSeconds: 60,
|
||||||
PaymentRequest: bobPayReqs[0],
|
FeeLimitSat: 1000000,
|
||||||
TimeoutSeconds: 60,
|
})
|
||||||
FeeLimitSat: 1000000,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
// At this point we want to make sure the channel is opened and not
|
// At this point we want to make sure the channel is opened and not
|
||||||
// pending.
|
// pending.
|
||||||
@ -14054,7 +14051,7 @@ func getPaymentResult(stream routerrpc.Router_SendPaymentV2Client) (
|
|||||||
// TestLightningNetworkDaemon performs a series of integration tests amongst a
|
// TestLightningNetworkDaemon performs a series of integration tests amongst a
|
||||||
// programmatically driven network of lnd nodes.
|
// programmatically driven network of lnd nodes.
|
||||||
func TestLightningNetworkDaemon(t *testing.T) {
|
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 {
|
if len(testsCases) == 0 {
|
||||||
t.Skip("integration tests not selected with flag 'rpctest'")
|
t.Skip("integration tests not selected with flag 'rpctest'")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user