gpui: Don't risk accidentally panicking during tests (#37457)

See the failure in
https://github.com/zed-industries/zed/actions/runs/17413839503/job/49437345296

Release Notes:

- N/A
This commit is contained in:
Nia
2025-09-03 15:44:07 +02:00
committed by GitHub
parent 7633bbf55a
commit ebc22c290b
+3
View File
@@ -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);