yyqdbngt opened a new pull request, #3831: URL: https://github.com/apache/rocketmq-dashboard/pull/3831
### Motivation The existing `LiteTopicSessionTest` covers the progress percentage only. The `hasActiveConsumption`/`isExpired` helpers and the over-consumption progress behaviour were untested. ### Changes - `hasActiveConsumptionShouldRequireActiveStatusAndPositiveRate`: active consumption needs `ACTIVE` status with a positive rate; missing/zero rates and other statuses are not consuming. - `isExpiredShouldReflectStatusAndRemainingTtl`: `EXPIRED` status and non-positive remaining TTL both signal expiry, while a live session with TTL left does not. - `consumptionProgressShouldNotClampOverConsumption`: consuming beyond the total reports a percentage above 100 (no clamping). ### Verification ``` mvn -B test -Dtest=LiteTopicSessionTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0 [INFO] BUILD SUCCESS ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
