Pengzna commented on code in PR #11378:
URL: https://github.com/apache/iotdb/pull/11378#discussion_r1372871886


##########
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/metric/MetricServiceTest.java:
##########
@@ -55,30 +50,31 @@ public class MetricServiceTest {
       MetricConfigDescriptor.getInstance().getMetricConfig();
   private static AbstractMetricService metricService = new 
DoNothingMetricService();
 
-  @Test
-  public void testMetricService() {
-    for (MetricFrameType type : MetricFrameType.values()) {
-      // init metric service
-      metricConfig.setMetricFrameType(type);
-      metricConfig.setMetricLevel(MetricLevel.IMPORTANT);
-      metricService = new DoNothingMetricService();
-      metricService.startService();
-
-      // test metric service
-      
assertTrue(metricService.getMetricManager().isEnableMetricInGivenLevel(MetricLevel.CORE));
-      assertTrue(
-          
metricService.getMetricManager().isEnableMetricInGivenLevel(MetricLevel.IMPORTANT));
-      
assertFalse(metricService.getMetricManager().isEnableMetricInGivenLevel(MetricLevel.NORMAL));
-      
assertFalse(metricService.getMetricManager().isEnableMetricInGivenLevel(MetricLevel.ALL));
-
-      testNormalSituation();
-
-      testOtherSituation();
-
-      // stop metric module
-      metricService.stopService();
-    }
-  }
+  //  @Test
+  //  public void testMetricService() {

Review Comment:
   Has fixed.



-- 
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]

Reply via email to