增加租户、租户套餐的单元测试

This commit is contained in:
YunaiV
2022-02-27 00:15:13 +08:00
parent 66ebb71b8a
commit 81d89ba350
9 changed files with 345 additions and 42 deletions

View File

@ -134,7 +134,7 @@ public class YudaoMQAutoConfiguration {
String version = MapUtil.getStr(info, "redis_version");
// 校验最低版本必须大于等于 5.0.0
int majorVersion = Integer.parseInt(StrUtil.subBefore(version, '.', false));
if (majorVersion < 7) {
if (majorVersion < 5) {
throw new IllegalStateException(StrUtil.format("您当前的 Redis 版本为 {},小于最低要求的 5.0.0 版本!" +
"请参考 {} 文档进行安装。", version, DocumentEnum.REDIS_INSTALL.getUrl()));
}