提交 5012a9bc 编写于 作者: P pengys5

Fixed time bucket test error

上级 ce8eaa94
package org.skywalking.apm.collector.agentstream.util;
package org.skywalking.apm.collector.stream.worker.util;
import java.util.Calendar;
import java.util.TimeZone;
......@@ -29,6 +29,7 @@ public class TimeBucketUtilsTestCase {
@Test
public void testGetSecondTimeBucket() {
TimeZone.setDefault(TimeZone.getTimeZone("GMT+08:00"));
long timeBucket = TimeBucketUtils.INSTANCE.getSecondTimeBucket(1490922929258L);
Assert.assertEquals(20170331091529L, timeBucket);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册