Skip to content

Commit dd5ec5c

Browse files
maoyizralf0131
authored andcommitted
[Dubbo-3657] Fix junit test failed (#3658)
1 parent 79f0b7c commit dd5ec5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dubbo-monitor/dubbo-monitor-api/src/main/java/org/apache/dubbo/monitor/support/AbstractMonitorFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public Monitor getMonitor(URL url) {
8585

8686
final URL monitorUrl = url;
8787
final CompletableFuture<Monitor> completableFuture = CompletableFuture.supplyAsync(() -> AbstractMonitorFactory.this.createMonitor(monitorUrl));
88-
completableFuture.thenRunAsync(new MonitorListener(key), executor);
8988
FUTURES.put(key, completableFuture);
89+
completableFuture.thenRunAsync(new MonitorListener(key), executor);
9090

9191
return null;
9292
} finally {

dubbo-monitor/dubbo-monitor-default/src/test/java/org/apache/dubbo/monitor/dubbo/DubboMonitorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Class<MonitorService> getInterface() {
6161
}
6262

6363
public URL getUrl() {
64-
return URL.valueOf("dubbo://127.0.0.1:7070?interval=20");
64+
return URL.valueOf("dubbo://127.0.0.1:7070?interval=1000");
6565
}
6666

6767
@Override

0 commit comments

Comments
 (0)