Correctly assert BackgroundProcessor error
authorJeffrey Czyz <jkczyz@gmail.com>
Sun, 18 Jul 2021 17:59:27 +0000 (12:59 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Sun, 18 Jul 2021 17:59:27 +0000 (12:59 -0500)
commitd9fa8f1c3872a32d107ac2e5630d6c3922bf9cc9
tree865053707932befca6aec8efc4d30d6438e34ce5
parent1f1d7c6890c6c9bef70eeb4ec4c6841e3344159b
Correctly assert BackgroundProcessor error

The specific error from the ChannelManager persister is not asserted for
in test_persist_error. Rather, any error will do. Update the test to use
BackgroundProcessor::stop and assert for the expected value.
lightning-background-processor/src/lib.rs