Merge pull request #1960 from tnull/2023-01-deref-router-in-invoicepayer
[rust-lightning] / fuzz / src / full_stack.rs
index 8a0b6de65f9b532fc1c66f9695fa01b9d74233cf..6d952b42d3cd4bc324e510e7b18546258e1fb861 100644 (file)
@@ -632,7 +632,9 @@ pub fn do_test(data: &[u8], logger: &Arc<dyn Logger>) {
                                                // It's possible the channel has been closed in the mean time, but any other
                                                // failure may be a bug.
                                                if let APIError::ChannelUnavailable { err } = e {
-                                                       assert_eq!(err, "No such channel");
+                                                       if !err.starts_with("Can't find a peer matching the passed counterparty node_id ") {
+                                                               assert_eq!(err, "No such channel");
+                                                       }
                                                } else { panic!(); }
                                        }
                                        pending_funding_signatures.insert(funding_output, tx);