From dd60d91e7543aed0fcd5b709213acb7e248d0d73 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 24 Jun 2020 14:16:32 +0000 Subject: [PATCH] disable fragile LRU tests for now --- src/lru/test.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lru/test.rs b/src/lru/test.rs index 5d41bd93..95170ce9 100644 --- a/src/lru/test.rs +++ b/src/lru/test.rs @@ -95,6 +95,7 @@ fn compare( // implementation (`oracle_hits` ought not to change). #[test] +#[ignore] // these results seem to vary between CI and local machines, not sure why, maybe version of rand? fn scenario_20_of_1000() { let (oracle_hits, lru_hits) = compare(20, 1000, 100, 10000); assert_eq!(oracle_hits, 9662); @@ -102,6 +103,7 @@ fn scenario_20_of_1000() { } #[test] +#[ignore] // these results seem to vary between CI and local machines, not sure why, maybe version of rand? fn scenario_200_of_1000() { let (oracle_hits, lru_hits) = compare(200, 1000, 100, 10000); assert_eq!(oracle_hits, 1496); @@ -109,6 +111,7 @@ fn scenario_200_of_1000() { } #[test] +#[ignore] // these results seem to vary between CI and local machines, not sure why, maybe version of rand? fn scenario_500_of_1000() { let (oracle_hits, lru_hits) = compare(500, 1000, 100, 10000); assert_eq!(oracle_hits, 3835); @@ -116,6 +119,7 @@ fn scenario_500_of_1000() { } #[test] +#[ignore] // these results seem to vary between CI and local machines, not sure why, maybe version of rand? fn scenario_2000_of_10000() { let (oracle_hits, lru_hits) = compare(2000, 10000, 100, 10000); assert_eq!(oracle_hits, 256);