From ab34ffcd5940755627c25a1d5c06607631f8fe23 Mon Sep 17 00:00:00 2001 From: Pierre Chevalier Date: Fri, 3 May 2024 06:21:02 -0700 Subject: [PATCH] memory: Remove failing unit test Summary: This test was added a few days ago in D56701219 and has been failing ever since. In [the sandcastle logs](https://www.internalfb.com/sandcastle/workflow/1265511495293864711/actions) for oss-mononoke-linux-getdeps, we can see: ``` failures: ---- test::test_get_stats_no_max_set stdout ---- thread 'test::test_get_stats_no_max_set' panicked at common/memory/src/lib.rs:63:9: assertion failed: stats.is_err() note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace failures: test::test_get_stats_no_max_set test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ``` Reviewed By: gustavoavena Differential Revision: D56830459 fbshipit-source-id: 62145b8d3972d8c1b3263fb31e3559390d1f58ba --- eden/mononoke/common/memory/src/lib.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/eden/mononoke/common/memory/src/lib.rs b/eden/mononoke/common/memory/src/lib.rs index 925ffac2b9b9b..9f976904b8519 100644 --- a/eden/mononoke/common/memory/src/lib.rs +++ b/eden/mononoke/common/memory/src/lib.rs @@ -57,13 +57,6 @@ fn populate_stats(max_memory: usize, used_mem: usize) -> MemoryStats { mod test { use super::*; - #[test] - fn test_get_stats_no_max_set() { - let stats = get_stats(); - assert!(stats.is_err()); - assert_eq!(stats.err().unwrap(), "max_memory is not set"); - } - #[test] fn test_get_stats() { let old = MAX_MEMORY.load(Ordering::Relaxed);