itest: make sure SendToRoute stream is recieved with timeout

This commit is contained in:
yyforyongyu
2023-01-17 07:34:07 +08:00
parent 23ec7b23e1
commit d4b2798570
2 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ func testSingleHopSendToRouteCase(ht *lntemp.HarnessTest,
err := alicePayStream.Send(sendReq)
require.NoError(ht, err, "unable to send payment")
resp, err := alicePayStream.Recv()
resp, err := ht.ReceiveSendToRouteUpdate(alicePayStream)
require.NoError(ht, err, "unable to receive stream")
require.Emptyf(ht, resp.PaymentError,
"received payment error from %s: %v",