From 2cafc7cebe8f66268d6726e59efecc00441e4266 Mon Sep 17 00:00:00 2001 From: Kai Yang Date: Wed, 29 Jul 2020 12:18:17 +0800 Subject: [PATCH] [Java] Fix MetricTest.java due to incomplete changes from #9703 (#9770) --- .../src/main/java/io/ray/test/MetricTest.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/java/test/src/main/java/io/ray/test/MetricTest.java b/java/test/src/main/java/io/ray/test/MetricTest.java index 6e4810945..ca7496e97 100644 --- a/java/test/src/main/java/io/ray/test/MetricTest.java +++ b/java/test/src/main/java/io/ray/test/MetricTest.java @@ -136,9 +136,7 @@ public class MetricTest extends BaseTest { Assert.assertEquals(window.size(), 0); } - @Test public void testRegisterGauge() throws InterruptedException { - TestUtils.skipTestUnderSingleProcess(); Gauge gauge = registerGauge(); gauge.update(2.0); @@ -147,9 +145,7 @@ public class MetricTest extends BaseTest { Assert.assertTrue(doubleEqual(gauge.getValue(), 5.0)); } - @Test public void testRegisterCount() throws InterruptedException { - TestUtils.skipTestUnderSingleProcess(); Count count = registerCount(); count.inc(10.0); @@ -160,9 +156,7 @@ public class MetricTest extends BaseTest { Assert.assertTrue(doubleEqual(count.getCount(), 33.0)); } - @Test public void testRegisterSum() throws InterruptedException { - TestUtils.skipTestUnderSingleProcess(); Sum sum = registerSum(); sum.update(10.0); @@ -173,9 +167,7 @@ public class MetricTest extends BaseTest { Assert.assertTrue(doubleEqual(sum.getSum(), 33.0)); } - @Test public void testRegisterHistogram() throws InterruptedException { - TestUtils.skipTestUnderSingleProcess(); Histogram histogram = registerHistogram(); for (int i = 1; i <= 200; ++i) { @@ -189,9 +181,7 @@ public class MetricTest extends BaseTest { Assert.assertTrue(doubleEqual(histogram.getValue(), 200.0d)); } - @Test public void testRegisterGaugeWithConfig() throws InterruptedException { - TestUtils.skipTestUnderSingleProcess(); initRayMetrics(2000L, 1, 1000L); Gauge gauge = registerGauge(); @@ -201,9 +191,7 @@ public class MetricTest extends BaseTest { Assert.assertTrue(doubleEqual(gauge.getValue(), 5.0)); } - @Test public void testRegisterCountWithConfig() throws InterruptedException { - TestUtils.skipTestUnderSingleProcess(); initRayMetrics(2000L, 1, 1000L); Count count = registerCount(); @@ -215,9 +203,7 @@ public class MetricTest extends BaseTest { Assert.assertTrue(doubleEqual(count.getCount(), 33.0)); } - @Test public void testRegisterSumWithConfig() throws InterruptedException { - TestUtils.skipTestUnderSingleProcess(); initRayMetrics(2000L, 1, 1000L); Sum sum = registerSum(); @@ -229,9 +215,7 @@ public class MetricTest extends BaseTest { Assert.assertTrue(doubleEqual(sum.getSum(), 33.0)); } - @Test public void testRegisterHistogramWithConfig() throws InterruptedException { - TestUtils.skipTestUnderSingleProcess(); initRayMetrics(2000L, 1, 1000L); Histogram histogram = registerHistogram();