From: Arik Sosman Date: Sat, 14 Oct 2023 01:01:21 +0000 (-0700) Subject: Assert that schema is uninitialized. X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=32c175b543de5782f6615a7110b4d303620b50d0;p=rapid-gossip-sync-server Assert that schema is uninitialized. --- diff --git a/src/tests/mod.rs b/src/tests/mod.rs index b62406d..09147e9 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -104,6 +104,7 @@ impl SchemaSanitizer { fn new() -> Self { IS_TEST_SCHEMA_CLEAN.with(|cleanliness_reference| { let mut is_clean_option = cleanliness_reference.borrow_mut(); + assert!(is_clean_option.is_none()); *is_clean_option = Some(false); });