mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 15:43:55 +08:00
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user