You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2018/10/25 14:46:25 UTC
[incubator-skywalking] branch mesh-receiver updated: Fix test cases.
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch mesh-receiver
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/mesh-receiver by this push:
new 82796df Fix test cases.
82796df is described below
commit 82796df68d35a50ca360c81e040092beabbecbe1
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Thu Oct 25 22:46:10 2018 +0800
Fix test cases.
---
.../core/analysis/indicator/ThermodynamicIndicatorTest.java | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/oap-server/server-core/src/test/java/org/apache/skywalking/oap/server/core/analysis/indicator/ThermodynamicIndicatorTest.java b/oap-server/server-core/src/test/java/org/apache/skywalking/oap/server/core/analysis/indicator/ThermodynamicIndicatorTest.java
index 07d48e3..4433692 100644
--- a/oap-server/server-core/src/test/java/org/apache/skywalking/oap/server/core/analysis/indicator/ThermodynamicIndicatorTest.java
+++ b/oap-server/server-core/src/test/java/org/apache/skywalking/oap/server/core/analysis/indicator/ThermodynamicIndicatorTest.java
@@ -50,13 +50,12 @@ public class ThermodynamicIndicatorTest {
indicatorMocker.combine(100, step, maxNumOfSteps);
Map<Integer, IntKeyLongValue> index = Whitebox.getInternalState(indicatorMocker, "detailIndex");
- Assert.assertEquals(5, index.size());
+ Assert.assertEquals(4, index.size());
Assert.assertEquals(1, index.get(2).getValue());
Assert.assertEquals(3, index.get(5).getValue());
Assert.assertEquals(1, index.get(6).getValue());
- Assert.assertEquals(6, index.get(10).getValue());
- Assert.assertEquals(2, index.get(11).getValue());
+ Assert.assertEquals(8, index.get(10).getValue());
}
@Test
@@ -83,13 +82,12 @@ public class ThermodynamicIndicatorTest {
indicatorMocker.combine(indicatorMocker2);
Map<Integer, IntKeyLongValue> index = Whitebox.getInternalState(indicatorMocker, "detailIndex");
- Assert.assertEquals(5, index.size());
+ Assert.assertEquals(4, index.size());
Assert.assertEquals(1, index.get(2).getValue());
Assert.assertEquals(3, index.get(5).getValue());
Assert.assertEquals(1, index.get(6).getValue());
- Assert.assertEquals(6, index.get(10).getValue());
- Assert.assertEquals(2, index.get(11).getValue());
+ Assert.assertEquals(8, index.get(10).getValue());
}
public class ThermodynamicIndicatorMocker extends ThermodynamicIndicator {