Skip to content

Commit 5b75716

Browse files
author
fishtailfu
committed
fix: fix prometheus reporter test
1 parent e3cfbf4 commit 5b75716

File tree

1 file changed

+2
-2
lines changed
  • polaris-plugins/polaris-plugins-observability/stat-prometheus/src/test/java/com/tencent/polaris/plugins/stat/prometheus/plugin

1 file changed

+2
-2
lines changed

polaris-plugins/polaris-plugins-observability/stat-prometheus/src/test/java/com/tencent/polaris/plugins/stat/prometheus/plugin/PrometheusReporterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ public void testExpiredDataClean() throws InterruptedException {
108108

109109
// mock push
110110
LOG.info("first mock push finish...");
111-
Thread.sleep(pushInterval + 1000);
111+
Thread.sleep(pushInterval + 50);
112112
Double result = getServiceCallTotalResult(callResult);
113113
Assert.assertEquals(new Double(count), result);
114114

115115
// mock next push
116116
LOG.info("second mock push finish...");
117-
Thread.sleep(pushInterval + 1000);
117+
Thread.sleep(pushInterval + 50);
118118
result = getServiceCallTotalResult(callResult);
119119
Assert.assertEquals(new Double(0), result);
120120

0 commit comments

Comments
 (0)