]> git.bitcoin.ninja Git - rust-lightning/commit
Assert equality of route params in tests
authorElias Rohrer <dev@tnull.de>
Fri, 29 Sep 2023 06:53:19 +0000 (08:53 +0200)
committerElias Rohrer <dev@tnull.de>
Fri, 29 Sep 2023 14:49:32 +0000 (16:49 +0200)
commit5d5d6406aa9ab8f5c4d3206b66682de796fdb1be
treecdc5317a1a37a98a1f4c7fe411a4bf4c3cf17080
parent6016101ac8ff31275f31f68eef8d33e94b19c0b1
Assert equality of route params in tests

Previously we only asserted the `final_value_msat` matches. Looking at
it again we can _of course_ assert the full equality of looked-for and
included route params after all (duh, not sure what I was thinking...).

This cleans up the prior misunderstanding and fixes a bunch of tests
that would now fail otherwise.
lightning/src/ln/outbound_payment.rs
lightning/src/ln/payment_tests.rs
lightning/src/util/test_utils.rs