]> git.bitcoin.ninja Git - rust-lightning/commit
Split channel_reserve_test so we don't rely on unfilled Err actions
authorMatt Corallo <git@bluematt.me>
Fri, 23 Nov 2018 04:44:42 +0000 (23:44 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 23 Nov 2018 04:57:54 +0000 (23:57 -0500)
commitdfbcacfe0ef446234d0d40400fc818908311da7b
treed4d547506edc905750752ce12701ea4e0844ed85
parentdae97a4858b482523c6815d4c75f11ca4781d2c8
Split channel_reserve_test so we don't rely on unfilled Err actions

Currently channel_reserve_test sends a garbage update_add_htlc
message and then relies on it being silently ignored to continue
using the channel. This shouldn't be the case, so take the easy
way out and split the test in two, at first not delivering the
bogus update_add_htlc and then delivering it, but not running the
rest of the test.
src/ln/channelmanager.rs