diff --git a/Cargo.toml b/Cargo.toml index c80e3e1..1a9ef4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,6 @@ bollard = { version = "0.17.1" } futures = "0.3" hex = { version = "0.4.3", default-features = false, features = ["serde"] } jsonrpsee = { version = "0.24.2", features = ["http-client", "ws-client"] } -log-panics = { version = "2", features = ["with-backtrace"] } rand = "0.8" serde = { version = "1.0.192", default-features = false, features = ["alloc", "derive"] } serde_json = { version = "1.0", default-features = false } diff --git a/src/framework.rs b/src/framework.rs index d3596be..1404163 100644 --- a/src/framework.rs +++ b/src/framework.rs @@ -99,7 +99,7 @@ impl TestFramework { } pub async fn init_nodes(&mut self) -> Result<()> { - // Use first node config for now, as we expect citrea nodes to interact only with this main node for now. + // Use first node config for now, as citrea nodes are expected to interact only with this main node for now. // Additional bitcoin node are solely used for simulating a bitcoin network and tx propagation/re-orgs let bitcoin_config = &self.ctx.config.bitcoin[0]; @@ -525,7 +525,5 @@ fn setup_logging() { .with(env_filter) .try_init(); } - - log_panics::init(); }); } diff --git a/src/test_case.rs b/src/test_case.rs index ebaf6f6..82d017c 100644 --- a/src/test_case.rs +++ b/src/test_case.rs @@ -112,12 +112,7 @@ impl TestCaseRunner { match result { Ok(Ok(())) => Ok(()), Ok(Err(e)) => Err(e), - Err(panic_error) => { - let panic_msg = panic_error - .downcast_ref::() - .map_or_else(|| "Unknown panic".to_string(), ToString::to_string); - bail!(panic_msg) - } + Err(panic_error) => panic::resume_unwind(panic_error), } }