Skip to content

Commit a304be6

Browse files
authored
Merge pull request lightningnetwork#9715 from ellemouton/removeChanClean
itest: remove manual channel closures from route blinding tests
2 parents 24fdae7 + b13f22b commit a304be6

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

itest/lnd_route_blinding_test.go

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,21 +1011,6 @@ func testMPPToSingleBlindedPath(ht *lntest.HarnessTest) {
10111011
}
10121012
}
10131013
require.Equal(ht, succeeded, settled, "num of HTLCs wrong")
1014-
1015-
// Close all channels without mining the closing transactions.
1016-
ht.CloseChannelAssertPending(alice, channelPoints[0], false)
1017-
ht.CloseChannelAssertPending(alice, channelPoints[1], false)
1018-
ht.CloseChannelAssertPending(bob, channelPoints[2], false)
1019-
ht.CloseChannelAssertPending(eve, channelPoints[3], false)
1020-
ht.CloseChannelAssertPending(carol, channelPoints[4], false)
1021-
1022-
// Now mine a block to include all the closing transactions.
1023-
ht.MineBlocksAndAssertNumTxes(1, 5)
1024-
1025-
// Assert that the channels are closed.
1026-
for _, hn := range nodes {
1027-
ht.AssertNumWaitingClose(hn, 0)
1028-
}
10291014
}
10301015

10311016
// testBlindedRouteDummyHops tests that the route blinding flow works as
@@ -1189,19 +1174,6 @@ func testBlindedRouteDummyHops(ht *lntest.HarnessTest) {
11891174
// Make sure Dave show the invoice as settled.
11901175
inv = dave.RPC.LookupInvoice(invoiceResp.RHash)
11911176
require.Equal(ht, lnrpc.Invoice_SETTLED, inv.State)
1192-
1193-
// Close all channels without mining the closing transactions.
1194-
ht.CloseChannelAssertPending(alice, channelPoints[0], false)
1195-
ht.CloseChannelAssertPending(bob, channelPoints[1], false)
1196-
ht.CloseChannelAssertPending(carol, channelPoints[2], false)
1197-
1198-
// Now mine a block to include all the closing transactions.
1199-
ht.MineBlocksAndAssertNumTxes(1, 3)
1200-
1201-
// Assert that the channels are closed.
1202-
for _, hn := range nodes {
1203-
ht.AssertNumWaitingClose(hn, 0)
1204-
}
12051177
}
12061178

12071179
// testMPPToMultipleBlindedPaths tests that a two-shard MPP payment can be sent
@@ -1355,21 +1327,6 @@ func testMPPToMultipleBlindedPaths(ht *lntest.HarnessTest) {
13551327
}
13561328
}
13571329
require.Equal(ht, succeeded, settled, "num of HTLCs wrong")
1358-
1359-
// Close all channels without mining the closing transactions.
1360-
ht.CloseChannelAssertPending(alice, channelPoints[0], false)
1361-
ht.CloseChannelAssertPending(alice, channelPoints[1], false)
1362-
ht.CloseChannelAssertPending(bob, channelPoints[2], false)
1363-
ht.CloseChannelAssertPending(carol, channelPoints[3], false)
1364-
1365-
// Now mine a block to include all the closing transactions. (first
1366-
// iteration: no blinded paths)
1367-
ht.MineBlocksAndAssertNumTxes(1, 4)
1368-
1369-
// Assert that the channels are closed.
1370-
for _, hn := range nodes {
1371-
ht.AssertNumWaitingClose(hn, 0)
1372-
}
13731330
}
13741331

13751332
// testBlindedPaymentHTLCReForward tests that an UpdateAddHTLC message is

0 commit comments

Comments
 (0)