From a0dbebe49cd7c472860d74054a3678dc25de2fcf Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Wed, 24 Apr 2024 16:51:57 -0700 Subject: [PATCH] Don't panic while panicking. --- src/tests/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/mod.rs b/src/tests/mod.rs index cbacca6..dbe5a52 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -136,6 +136,9 @@ impl Drop for SchemaSanitizer { IS_TEST_SCHEMA_CLEAN.with(|cleanliness_reference| { let is_clean_option = cleanliness_reference.borrow(); if let Some(is_clean) = *is_clean_option { + if std::thread::panicking() { + return; + } assert_eq!(is_clean, true); } }); -- 2.39.5