Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2018-04-24 23:11:15 -0400
committerEike Stepper2018-04-24 23:11:15 -0400
commitd3d54f27b1c256e2416c4cd0e873d2764b5edcaf (patch)
tree2919657523ec8493ec381829004426ecd99bbfb2 /plugins/org.eclipse.net4j.tests/src/org
parentcdd0658a95a41d9adb12fe218451f57eec100b75 (diff)
downloadcdo-d3d54f27b1c256e2416c4cd0e873d2764b5edcaf.tar.gz
cdo-d3d54f27b1c256e2416c4cd0e873d2764b5edcaf.tar.xz
cdo-d3d54f27b1c256e2416c4cd0e873d2764b5edcaf.zip
[534014] ReconnectingSession fails to reconnect the second time
https://bugs.eclipse.org/bugs/show_bug.cgi?id=534014
Diffstat (limited to 'plugins/org.eclipse.net4j.tests/src/org')
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java
index 162ea1cdb5..aea3b9e3e1 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java
@@ -857,6 +857,14 @@ public abstract class AbstractOMTest extends TestCase
});
}
+ public static final void await(CountDownLatch latch) throws InterruptedException, TimeoutException
+ {
+ if (!latch.await(DEFAULT_TIMEOUT, TimeUnit.MILLISECONDS))
+ {
+ throw new TimeoutException("Latch timed out: " + latch);
+ }
+ }
+
/**
* @author Eike Stepper
*/

Back to the top