lnd_test: removes unnecessary disconnects from switch itest
This commit removes two unnecessary disconnect/reconnect attempts from the switch itest. Both occur after the primary test has been completed, and were being executed before doing a final sanity check that the path is still usable. Nothing about the test behavior should change.
This commit is contained in:
parent
07266d8080
commit
6c42dd2c09
20
lnd_test.go
20
lnd_test.go
@ -7208,16 +7208,6 @@ func testSwitchOfflineDelivery(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
assertAmountPaid(t, ctxb, "Bob(local) => Alice(remote)", net.Bob,
|
assertAmountPaid(t, ctxb, "Bob(local) => Alice(remote)", net.Bob,
|
||||||
aliceFundPoint, amountPaid+(baseFee*numPayments)*2, int64(0))
|
aliceFundPoint, amountPaid+(baseFee*numPayments)*2, int64(0))
|
||||||
|
|
||||||
ctxt, _ = context.WithTimeout(ctxb, timeout)
|
|
||||||
if err := net.DisconnectNodes(ctxt, dave, net.Alice); err != nil {
|
|
||||||
t.Fatalf("unable to disconnect alice from dave: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
ctxt, _ = context.WithTimeout(ctxb, timeout)
|
|
||||||
if err := net.ConnectNodes(ctxt, dave, net.Alice); err != nil {
|
|
||||||
t.Fatalf("unable to reconnect alice to dave: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Lastly, we will send one more payment to ensure all channels are
|
// Lastly, we will send one more payment to ensure all channels are
|
||||||
// still functioning properly.
|
// still functioning properly.
|
||||||
finalInvoice := &lnrpc.Invoice{
|
finalInvoice := &lnrpc.Invoice{
|
||||||
@ -7524,16 +7514,6 @@ func testSwitchOfflineDeliveryPersistence(net *lntest.NetworkHarness, t *harness
|
|||||||
assertAmountPaid(t, ctxb, "Bob(local) => Alice(remote)", net.Bob,
|
assertAmountPaid(t, ctxb, "Bob(local) => Alice(remote)", net.Bob,
|
||||||
aliceFundPoint, amountPaid+(baseFee*numPayments)*2, int64(0))
|
aliceFundPoint, amountPaid+(baseFee*numPayments)*2, int64(0))
|
||||||
|
|
||||||
ctxt, _ = context.WithTimeout(ctxb, timeout)
|
|
||||||
if err := net.DisconnectNodes(ctxt, dave, net.Alice); err != nil {
|
|
||||||
t.Fatalf("unable to disconnect alice from dave: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
ctxt, _ = context.WithTimeout(ctxb, timeout)
|
|
||||||
if err := net.ConnectNodes(ctxt, dave, net.Alice); err != nil {
|
|
||||||
t.Fatalf("unable to reconnect alice to dave: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Lastly, we will send one more payment to ensure all channels are
|
// Lastly, we will send one more payment to ensure all channels are
|
||||||
// still functioning properly.
|
// still functioning properly.
|
||||||
finalInvoice := &lnrpc.Invoice{
|
finalInvoice := &lnrpc.Invoice{
|
||||||
|
Loading…
Reference in New Issue
Block a user