Skip to content

Commit

Permalink
lntest/itest: expand testSingleHopSendToRoute matrix
Browse files Browse the repository at this point in the history
In this commit, we refactor the testSingleHopSendToRoute test to support
table driven tests for various endpoints and payment types. Currently
only the main rpcserver's SendToRoute is tested, so we also add
support the SendToRouteSync and the routerrpc's SendToRoute.

The tests are also modified to have each endpoint perform a single-hop,
single-shot MPP payment. This asserts that the Hop messages are being
properly unmarshalled and that setting correctly yields a successful
payment. At the momemnt the receiver does not actually verify or use the
MPP fields presented in the onion, though this test will be expanded
later as those pieces are assembled.
  • Loading branch information
cfromknecht committed Nov 4, 2019
1 parent 18a06b0 commit 540e44e
Showing 1 changed file with 305 additions and 74 deletions.

0 comments on commit 540e44e

Please sign in to comment.