This is an automated email from the ASF dual-hosted git repository.
songxiaosheng pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.2 by this push:
new 1835a106c9 Ut change note for english (#12432)
1835a106c9 is described below
commit 1835a106c9d8f261bc9ea98e2b877a9c2b4790e1
Author: jojocodeX <[email protected]>
AuthorDate: Wed May 31 18:54:07 2023 +0800
Ut change note for english (#12432)
* 添加Jackson序列化器
支持Jackson序列化器扩展配置
代码格式化调整
* Jackson module 注册错误忽略异常
* Jackson module 注册错误忽略异常
* add LdapJackson2Module Jackson module
* add spi to dubbo-all pom config
* remove unused code
* undo remove code
* Run CI
* merge conflict
* ignore codec error
* Change log output
* Add log error code
* Add sliding window stat
* fix checkstyle
* rename and version change
* MetricsKey rename
* MetricsKey rename
* change ut
* Ut change note for english
---------
Co-authored-by: songxiaosheng <[email protected]>
---
.../apache/dubbo/metrics/aggregate/TimeWindowAggregatorTest.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
a/dubbo-metrics/dubbo-metrics-api/src/test/java/org/apache/dubbo/metrics/aggregate/TimeWindowAggregatorTest.java
b/dubbo-metrics/dubbo-metrics-api/src/test/java/org/apache/dubbo/metrics/aggregate/TimeWindowAggregatorTest.java
index fc2d42c614..e0db96730f 100644
---
a/dubbo-metrics/dubbo-metrics-api/src/test/java/org/apache/dubbo/metrics/aggregate/TimeWindowAggregatorTest.java
+++
b/dubbo-metrics/dubbo-metrics-api/src/test/java/org/apache/dubbo/metrics/aggregate/TimeWindowAggregatorTest.java
@@ -27,7 +27,8 @@ public class TimeWindowAggregatorTest {
public void testTimeWindowAggregator() {
TimeWindowAggregator aggregator = new TimeWindowAggregator(5, 5);
- // 第一个时间窗口,时间范围:0秒 - 5秒
+ //First time window, time range: 0 - 5 seconds
+
aggregator.add(10);
aggregator.add(20);
aggregator.add(30);
@@ -39,7 +40,7 @@ public class TimeWindowAggregatorTest {
Assertions.assertEquals(30, entry1.getMax());
Assertions.assertEquals(10, entry1.getMin());
- // 第二个时间窗口,时间范围:5秒 - 10秒
+ //Second time window, time range: 5 - 10 seconds
try {
TimeUnit.SECONDS.sleep(5);
} catch (InterruptedException e) {
@@ -57,7 +58,9 @@ public class TimeWindowAggregatorTest {
Assertions.assertEquals(35, entry2.getMax());
Assertions.assertEquals(15, entry2.getMin());
- // 第三个时间窗口,时间范围:10秒 - 15秒
+
+ //Third time window, time range: 10 - 15 seconds
+
try {
TimeUnit.SECONDS.sleep(5);
} catch (InterruptedException e) {