Permalink
Browse files

ns

  • Loading branch information...
1 parent 8e84397 commit ee16721cfa1e81b73b71a0d6494c02340024c5cb Bela Ban committed Feb 14, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/junit-functional/org/jgroups/tests/CreditMapTest.java
@@ -169,7 +169,11 @@ public void testBlockingDecrementAndReplenishment2() {
for(Decrementer decr: decrementers)
decr.start();
- Util.sleep(1000);
+ for(int i=0; i < 10; i++) {
+ if(countAliveThreads(decrementers) == 3)
+ break;
+ Util.sleep(500);
+ }
int alive=countAliveThreads(decrementers);
assert alive == 3;

0 comments on commit ee16721

Please sign in to comment.