From 846a2f3f27fe8ae1778140e2a4a763905a4be821 Mon Sep 17 00:00:00 2001 From: MrCroxx Date: Fri, 1 Mar 2024 18:12:42 +0800 Subject: [PATCH] fix: add shoule panic for a need removing ut Signed-off-by: MrCroxx --- src/batch/src/executor/hash_agg.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/batch/src/executor/hash_agg.rs b/src/batch/src/executor/hash_agg.rs index a5df8d443e94..834b29ee7cc8 100644 --- a/src/batch/src/executor/hash_agg.rs +++ b/src/batch/src/executor/hash_agg.rs @@ -466,6 +466,7 @@ mod tests { /// A test to verify that `HashMap` may leak memory counter when using `into_iter`. #[test] + #[should_panic] // TODO(MrCroxx): This bug is fixed and the test should panic. Remove the test and fix the related code later. fn test_hashmap_into_iter_bug() { let dropped: Arc = Arc::new(AtomicBool::new(false));