From 1612a7d83d4b6c2e6be95739fe74505502518249 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 31 May 2024 13:05:49 +0200 Subject: [PATCH] fix: false positive for ParentMissing --- consensus/cryptarchia-engine/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/cryptarchia-engine/src/lib.rs b/consensus/cryptarchia-engine/src/lib.rs index b48c4b96..4bc05f61 100644 --- a/consensus/cryptarchia-engine/src/lib.rs +++ b/consensus/cryptarchia-engine/src/lib.rs @@ -370,7 +370,7 @@ pub mod tests { .get(¬_a_parent) .ok_or(Error::ParentMissing(not_a_parent)) { - Ok(_) => (), + Ok(_) => panic!("Parent should not be related to this branch"), Err(e) => { assert_ne!(e, Error::ParentMissing(parent)); }