]> git.bitcoin.ninja Git - rust-lightning/commit
Make `lightning-background-processor` test failures more debugable
authorMatt Corallo <git@bluematt.me>
Mon, 3 Apr 2023 18:38:26 +0000 (18:38 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 4 Apr 2023 20:59:56 +0000 (20:59 +0000)
commitfcf1282975fe8627efdd7657ba3007640daedce8
tree8166e8059d46b86b09b681bd1adab8f857965e97
parent3b8bf93251a9c8aa528c6961d572a611bc140eb5
Make `lightning-background-processor` test failures more debugable

Instead of asserting a `Result` `is_ok`, we should always simply
`unwrap` to get a backgrace, and we should avoid doing so if the
thread is already panicking.
lightning-background-processor/src/lib.rs