We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a747372 commit 5486d70Copy full SHA for 5486d70
1 file changed
rocketmq-broker/src/processor/pop_message_processor.rs
@@ -383,9 +383,9 @@ mod tests {
383
let queue_id = 1;
384
manager.try_lock(&topic, &consumer_group, queue_id).await;
385
tokio::time::sleep(tokio::time::Duration::from_millis(10)).await;
386
- let removed_count = manager.clean_unused_locks(5).await;
387
- assert_eq!(removed_count, 1);
388
- let removed_count = manager.clean_unused_locks(15).await;
389
- assert_eq!(removed_count, 0);
+ let remaining_count = manager.clean_unused_locks(5).await;
+ assert_eq!(remaining_count, 0);
+ let remaining_count = manager.clean_unused_locks(15).await;
390
}
391
0 commit comments