diff --git a/streamer/src/nonblocking/stream_throttle.rs b/streamer/src/nonblocking/stream_throttle.rs index 94231b9d8f8c41..2a9f6382dd6596 100644 --- a/streamer/src/nonblocking/stream_throttle.rs +++ b/streamer/src/nonblocking/stream_throttle.rs @@ -243,13 +243,13 @@ pub mod test { Arc::new(StreamStats::default()), MAX_UNSTAKED_CONNECTIONS, )); - // 25K packets per ms * 20% / 500 max unstaked connections + // 2500 packets per 100 ms * 20% / 500 max unstaked connections assert_eq!( load_ema.available_load_capacity_in_throttling_duration( ConnectionPeerType::Unstaked, 10000, ), - 10 + 1 ); }