Skip to content

Commit

Permalink
update test so we're covering the new cache key option
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Sep 5, 2024
1 parent 59aae0f commit 3c21827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/capture/src/limiters/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3c21827

Please sign in to comment.