diff --git a/backend/services/system-setting/src/test/java/io/metersphere/system/controller/PluginControllerTests.java b/backend/services/system-setting/src/test/java/io/metersphere/system/controller/PluginControllerTests.java index 66250e6070..30700274d5 100644 --- a/backend/services/system-setting/src/test/java/io/metersphere/system/controller/PluginControllerTests.java +++ b/backend/services/system-setting/src/test/java/io/metersphere/system/controller/PluginControllerTests.java @@ -316,7 +316,7 @@ public class PluginControllerTests extends BaseTest { MvcResult mvcResult = this.requestGetWithOkAndReturn(DEFAULT_LIST); // 校验数据是否正确 List pluginList = getResultDataArray(mvcResult, PluginDTO.class); - Assertions.assertEquals(3, pluginList.size()); + Assertions.assertEquals(pluginMapper.selectByExample(new PluginExample()).size(), pluginList.size()); // 获取数据库数据 List pluginIds = pluginList.stream().map(PluginDTO::getId).toList();