This is an automated email from the ASF dual-hosted git repository.

crazyhzm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-integration-cases.git


The following commit(s) were added to refs/heads/main by this push:
     new 56028ad9 Fix ExtensionDirector is destroyed problem (#58)
56028ad9 is described below

commit 56028ad9cb7d435d178cea84aab259d2880d8f4f
Author: Jermaine Hua <[email protected]>
AuthorDate: Tue Feb 18 23:08:29 2025 +0800

    Fix ExtensionDirector is destroyed problem (#58)
    
    Signed-off-by: crazyhzm <[email protected]>
---
 .../java/org/apache/dubbo/samples/test/MetadataIT.java    | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/99-integration/dubbo-samples-test-11096/src/test/java/org/apache/dubbo/samples/test/MetadataIT.java
 
b/99-integration/dubbo-samples-test-11096/src/test/java/org/apache/dubbo/samples/test/MetadataIT.java
index a9947cea..4bed52c7 100644
--- 
a/99-integration/dubbo-samples-test-11096/src/test/java/org/apache/dubbo/samples/test/MetadataIT.java
+++ 
b/99-integration/dubbo-samples-test-11096/src/test/java/org/apache/dubbo/samples/test/MetadataIT.java
@@ -64,7 +64,8 @@ public class MetadataIT {
         Map<String, MetadataReport> metadataReports = 
metadataReportInstance.getMetadataReports(true);
         Assert.assertNotNull(metadataReports);
         Assert.assertEquals(1, metadataReports.size());
-        applicationModel.destroy();
+        FrameworkModel.destroyAll();
+
     }
 
     @Test
@@ -96,7 +97,7 @@ public class MetadataIT {
         Map<String, MetadataReport> metadataReports = 
metadataReportInstance.getMetadataReports(true);
         Assert.assertNotNull(metadataReports);
         Assert.assertEquals(1, metadataReports.size());
-        applicationModel.destroy();
+        FrameworkModel.destroyAll();
     }
 
     @Test
@@ -130,7 +131,7 @@ public class MetadataIT {
         Map<String, MetadataReport> metadataReports = 
metadataReportInstance.getMetadataReports(true);
         Assert.assertNotNull(metadataReports);
         Assert.assertEquals(0, metadataReports.size());
-        applicationModel.destroy();
+        FrameworkModel.destroyAll();
     }
 
     @Test
@@ -161,7 +162,7 @@ public class MetadataIT {
             Assert.assertTrue(e.getMessage().contains("Please specify valid 
protocol or address for metadata report"));
         }
 
-        applicationModel.destroy();
+        FrameworkModel.destroyAll();
     }
 
     @Test
@@ -197,7 +198,7 @@ public class MetadataIT {
         Map<String, MetadataReport> metadataReports = 
metadataReportInstance.getMetadataReports(true);
         Assert.assertNotNull(metadataReports);
         Assert.assertEquals(0, metadataReports.size());
-        applicationModel.destroy();
+        FrameworkModel.destroyAll();
     }
 
     @Test
@@ -232,7 +233,7 @@ public class MetadataIT {
         Assert.assertEquals(1, metadataReports.size());
         AbstractMetadataReport report = (AbstractMetadataReport) 
metadataReports.entrySet().iterator().next().getValue();
         Assert.assertFalse(report.getUrl().getParameter("cycle-report", true));
-        applicationModel.destroy();
+        FrameworkModel.destroyAll();
     }
 
     @Test
@@ -267,6 +268,6 @@ public class MetadataIT {
         Assert.assertEquals(1, metadataReports.size());
         AbstractMetadataReport report = (AbstractMetadataReport) 
metadataReports.entrySet().iterator().next().getValue();
         Assert.assertFalse(report.shouldReportMetadata());
-        applicationModel.destroy();
+        FrameworkModel.destroyAll();
     }
 }

Reply via email to