From 1b1093afc269f23d6021f95458992de5bd5c2c2e Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Fri, 29 Mar 2024 00:33:25 +0100 Subject: [PATCH] integration tests for async redis with local cache: add flushing period --- limitador/tests/integration_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limitador/tests/integration_tests.rs b/limitador/tests/integration_tests.rs index 4807b832..a6ccf1a5 100644 --- a/limitador/tests/integration_tests.rs +++ b/limitador/tests/integration_tests.rs @@ -59,7 +59,7 @@ macro_rules! test_with_all_storage_impls { #[serial] async fn [<$function _with_async_redis_and_local_cache>]() { let storage_builder = CachedRedisStorageBuilder::new("redis://127.0.0.1:6379"). - flushing_period(None). + flushing_period(Some(Duration::from_millis(200))). max_ttl_cached_counters(Duration::from_secs(3600)). ttl_ratio_cached_counters(1). max_cached_counters(10000);