Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

test(fetch): accept stable and nightly owner panic frame formats

ldm06ef92ff113b6
diff --git a/moli-fetch/src/tests/mod.rs b/moli-fetch/src/tests/mod.rs
index 854d19d88..ed45431f6 100644
--- a/moli-fetch/src/tests/mod.rs
+++ b/moli-fetch/src/tests/mod.rs
@@ -6222,8 +6222,13 @@ fn fetch_runtime_owner_panic_returns_payload_and_identity_and_other_owners_still
.backtrace()
.expect("semantic owner panic must retain its panic-site backtrace");
assert!(!backtrace.trim().is_empty());
+ // Toolchains can demangle inherent methods as Type::method or <Type>::method.
+ // Require the same fully qualified owner and method in a single frame.
assert!(
- backtrace.contains("RuntimeOwner::handle_command"),
+ backtrace.lines().any(|frame| {
+ frame.contains("moli_fetch::runtime::RuntimeOwner::handle_command")
+ || frame.contains("<moli_fetch::runtime::RuntimeOwner>::handle_command")
+ }),
"panic backtrace should identify the semantic owner command boundary: {backtrace}"
);
assert_eq!(