beiwei30 closed pull request #1805: make unit test stable
URL: https://github.com/apache/incubator-dubbo/pull/1805
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/cached/CachedThreadPoolTest.java
 
b/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/cached/CachedThreadPoolTest.java
index 63c7c93b74..083af0f263 100644
--- 
a/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/cached/CachedThreadPoolTest.java
+++ 
b/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/cached/CachedThreadPoolTest.java
@@ -66,7 +66,7 @@ public void run() {
             }
         });
 
-        latch.await(5000, TimeUnit.MICROSECONDS);
+        latch.await();
         assertThat(latch.getCount(), is(0L));
     }
 
diff --git 
a/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/eager/EagerThreadPoolTest.java
 
b/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/eager/EagerThreadPoolTest.java
index a7f240896d..8d3e939601 100644
--- 
a/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/eager/EagerThreadPoolTest.java
+++ 
b/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/eager/EagerThreadPoolTest.java
@@ -67,7 +67,7 @@ public void run() {
             }
         });
 
-        latch.await(5000, TimeUnit.MICROSECONDS);
+        latch.await();
         assertThat(latch.getCount(), is(0L));
     }
 
diff --git 
a/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/fixed/FixedThreadPoolTest.java
 
b/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/fixed/FixedThreadPoolTest.java
index faefe6f4d5..9d285f6511 100644
--- 
a/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/fixed/FixedThreadPoolTest.java
+++ 
b/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/fixed/FixedThreadPoolTest.java
@@ -67,7 +67,7 @@ public void run() {
             }
         });
 
-        latch.await(5000, TimeUnit.MICROSECONDS);
+        latch.await();
         assertThat(latch.getCount(), is(0L));
     }
 
diff --git 
a/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/limited/LimitedThreadPoolTest.java
 
b/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/limited/LimitedThreadPoolTest.java
index b99ce6c8cc..d58da069b4 100644
--- 
a/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/limited/LimitedThreadPoolTest.java
+++ 
b/dubbo-common/src/test/java/com/alibaba/dubbo/common/threadpool/support/limited/LimitedThreadPoolTest.java
@@ -65,7 +65,7 @@ public void run() {
             }
         });
 
-        latch.await(5000, TimeUnit.MICROSECONDS);
+        latch.await();
         assertThat(latch.getCount(), is(0L));
     }
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to