Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Don't risk accidentally panicking during tests (#37457)
Niaebc22c290bd0
diff --git a/crates/gpui/src/test.rs b/crates/gpui/src/test.rsindex 4794fd002e2..5ae72d2be16 100644--- a/crates/gpui/src/test.rs+++ b/crates/gpui/src/test.rs@@ -64,6 +64,9 @@ pub fn run_test(if attempt < max_retries {println!("attempt {} failed, retrying", attempt);attempt += 1;+ // The panic payload might itself trigger an unwind on drop:+ // https://doc.rust-lang.org/std/panic/fn.catch_unwind.html#notes+ std::mem::forget(error);} else {if is_multiple_runs {eprintln!("failing seed: {}", seed);