]> git.bitcoin.ninja Git - rust-lightning/commit
Expand expect_payment_failed!() to take error codes and use it more
authorMatt Corallo <git@bluematt.me>
Mon, 20 Apr 2020 19:46:35 +0000 (15:46 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 24 Apr 2020 18:28:53 +0000 (14:28 -0400)
commitc0199224ab24cb37934bc14b5a52ab6415429308
tree27efd8cf3cb19e3ccffe5891d15b3a9f18e2582c
parentc9483c69081dc6818ed57e2ca3212010bb132dc7
Expand expect_payment_failed!() to take error codes and use it more

expect_payment_failed!() was introduced after many of the tests
which could use it were written, so we take this opportunity to
switch them over now, increasing test coverage slightly by always
checking the payment hash expected.
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs