diff --git a/arklet/arklet-core/src/test/java/com/alipay/sofa/serverless/arklet/core/component/ComponentRegistryTest.java b/arklet/arklet-core/src/test/java/com/alipay/sofa/serverless/arklet/core/component/ComponentRegistryTest.java index f68cad083..f0ce7a9fc 100644 --- a/arklet/arklet-core/src/test/java/com/alipay/sofa/serverless/arklet/core/component/ComponentRegistryTest.java +++ b/arklet/arklet-core/src/test/java/com/alipay/sofa/serverless/arklet/core/component/ComponentRegistryTest.java @@ -29,6 +29,7 @@ public class ComponentRegistryTest { @Test public void run() { ArkletComponentRegistry registry = new ArkletComponentRegistry(); + registry.destroyComponents(); registry.initComponents(); Assert.assertNotNull(ArkletComponentRegistry.getCommandServiceInstance()); Assert.assertNotNull(ArkletComponentRegistry.getOperationServiceInstance());