itest: switch over to routerrpc.SendToRouteV2

This commit is contained in:
Joost Jager 2020-05-06 15:28:41 +02:00
parent 0f6eacb4fa
commit 261588cc8e
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7
2 changed files with 2 additions and 2 deletions

@ -139,7 +139,7 @@ func testSendToRouteMultiPath(net *lntest.NetworkHarness, t *harnessTest) {
// block as long as the payment is in flight.
go func() {
ctxt, _ := context.WithTimeout(ctxb, defaultTimeout)
resp, err := net.Alice.RouterClient.SendToRoute(ctxt, sendReq)
resp, err := net.Alice.RouterClient.SendToRouteV2(ctxt, sendReq)
if err != nil {
t.Fatalf("unable to send payment: %v", err)
}

@ -4830,7 +4830,7 @@ func testSingleHopSendToRouteCase(net *lntest.NetworkHarness, t *harnessTest,
Route: r,
}
ctxt, _ = context.WithTimeout(ctxb, defaultTimeout)
resp, err := carol.RouterClient.SendToRoute(
resp, err := carol.RouterClient.SendToRouteV2(
ctxt, sendReq,
)
if err != nil {