We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
full_stack_target
1 parent 4dd6142 commit 1ea804aCopy full SHA for 1ea804a
fuzz/src/full_stack.rs
@@ -635,9 +635,10 @@ pub fn do_test(data: &[u8], logger: &Arc<dyn Logger>) {
635
// It's possible the channel has been closed in the mean time, but any other
636
// failure may be a bug.
637
if let APIError::ChannelUnavailable { err } = e {
638
- if !err.starts_with("Can't find a peer matching the passed counterparty node_id ") {
639
- assert_eq!(err, "No such channel");
640
- }
+ assert!(
+ err.starts_with("Can't find a peer matching the passed counterparty node_id ") ||
+ (err.starts_with("Channel with id ") && err.contains(" not found for the passed counterparty node_id "))
641
+ );
642
} else { panic!(); }
643
}
644
pending_funding_signatures.insert(funding_output, tx);
0 commit comments