From 3c21827f8bdecb85a472338d53d31ff8999918af Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Thu, 5 Sep 2024 10:15:39 +0100 Subject: [PATCH] update test so we're covering the new cache key option --- rust/capture/src/limiters/redis.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/capture/src/limiters/redis.rs b/rust/capture/src/limiters/redis.rs index c168933442987..bbcd29d1c12da 100644 --- a/rust/capture/src/limiters/redis.rs +++ b/rust/capture/src/limiters/redis.rs @@ -194,13 +194,13 @@ mod tests { #[tokio::test] async fn test_dynamic_limited() { let client = MockRedisClient::new() - .zrangebyscore_ret("@posthog/quota-limits/events", vec![String::from("banana")]); + .zrangebyscore_ret("@posthog/capture-overflow/events", vec![String::from("banana")]); let client = Arc::new(client); let limiter = RedisLimiter::new( Duration::microseconds(1), client, - QUOTA_LIMITER_CACHE_KEY.to_string(), + OVERFLOW_LIMITER_CACHE_KEY.to_string(), None, ) .expect("Failed to create billing limiter");