]> git.bitcoin.ninja Git - rapid-gossip-sync-server/commitdiff
Assert that schema is uninitialized.
authorArik Sosman <git@arik.io>
Sat, 14 Oct 2023 01:01:21 +0000 (18:01 -0700)
committerArik Sosman <git@arik.io>
Sat, 14 Oct 2023 01:01:21 +0000 (18:01 -0700)
src/tests/mod.rs

index b62406d42240855c543df8719ca3f5f370b6ba9d..09147e920b501fd735ee7016c41a90da055b794b 100644 (file)
@@ -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);
                });