Skip to content

Commit 34d8fff

Browse files
committed
itest: update route blind tests
The route blinding itests are now updated so that recipient logic is tested. The creation of a blinded route is also now done through the AddInvoice API instead of manually.
1 parent 65aef6a commit 34d8fff

File tree

4 files changed

+183
-402
lines changed

4 files changed

+183
-402
lines changed

itest/list_on_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ var allTestCases = []*lntest.TestCase{
563563
TestFunc: testQueryBlindedRoutes,
564564
},
565565
{
566-
Name: "forward blinded",
567-
TestFunc: testForwardBlindedRoute,
566+
Name: "forward and receive blinded",
567+
TestFunc: testForwardAndReceiveBlindedRoute,
568568
},
569569
{
570570
Name: "receiver blinded error",

itest/lnd_multi-hop-payments_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,24 +214,24 @@ func testMultiHopPayments(ht *lntest.HarnessTest) {
214214
// We expect Carol to have successful forwards and settles for
215215
// her sends.
216216
ht.AssertHtlcEvents(
217-
carolEvents, numPayments, 0, numPayments,
217+
carolEvents, numPayments, 0, numPayments, 0,
218218
routerrpc.HtlcEvent_SEND,
219219
)
220220

221221
// Dave and Alice should both have forwards and settles for
222222
// their role as forwarding nodes.
223223
ht.AssertHtlcEvents(
224-
daveEvents, numPayments, 0, numPayments,
224+
daveEvents, numPayments, 0, numPayments, 0,
225225
routerrpc.HtlcEvent_FORWARD,
226226
)
227227
ht.AssertHtlcEvents(
228-
aliceEvents, numPayments, 0, numPayments,
228+
aliceEvents, numPayments, 0, numPayments, 0,
229229
routerrpc.HtlcEvent_FORWARD,
230230
)
231231

232232
// Bob should only have settle events for his receives.
233233
ht.AssertHtlcEvents(
234-
bobEvents, 0, 0, numPayments, routerrpc.HtlcEvent_RECEIVE,
234+
bobEvents, 0, 0, numPayments, 0, routerrpc.HtlcEvent_RECEIVE,
235235
)
236236

237237
// Finally, close all channels.

0 commit comments

Comments
 (0)