Skip to content

Commit 3d2a0f8

Browse files
authored
make unit test stable (#1805)
1 parent 3c6201c commit 3d2a0f8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/cached/CachedThreadPoolTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void run() {
6666
}
6767
});
6868

69-
latch.await(5000, TimeUnit.MICROSECONDS);
69+
latch.await();
7070
assertThat(latch.getCount(), is(0L));
7171
}
7272

dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/eager/EagerThreadPoolTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void run() {
6767
}
6868
});
6969

70-
latch.await(5000, TimeUnit.MICROSECONDS);
70+
latch.await();
7171
assertThat(latch.getCount(), is(0L));
7272
}
7373

dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/fixed/FixedThreadPoolTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void run() {
6767
}
6868
});
6969

70-
latch.await(5000, TimeUnit.MICROSECONDS);
70+
latch.await();
7171
assertThat(latch.getCount(), is(0L));
7272
}
7373

dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/limited/LimitedThreadPoolTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void run() {
6565
}
6666
});
6767

68-
latch.await(5000, TimeUnit.MICROSECONDS);
68+
latch.await();
6969
assertThat(latch.getCount(), is(0L));
7070
}
7171

0 commit comments

Comments
 (0)